Description
The IsWhitelistDisabled
property indicates whether the whitelist for the project is disabled. When the whitelist is disabled, the project can only be exported and cannot be uploaded to sbox.game
. This property is useful for managing project distribution and ensuring compliance with platform requirements.
Usage
To check if the whitelist is disabled for a project, access the IsWhitelistDisabled
property from an instance of ProjectConfig
. This property returns a boolean value.
Example
// Example of accessing the IsWhitelistDisabled property
// Assume projectConfig is an instance of ProjectConfig
bool isWhitelistDisabled = projectConfig.IsWhitelistDisabled;
if (isWhitelistDisabled)
{
// Handle the case where the whitelist is disabled
// For example, restrict certain operations or notify the user
}