Class SceneAddedToBuildCriterion
Criterion for checking that a specific scene is added to the build.
Inherited Members
Namespace: Unity.Tutorials.Core.Editor
Assembly: Unity.Tutorials.Core.Editor.dll
Syntax
public class SceneAddedToBuildCriterion : Criterion
Properties
Scene
The scene that needs to be added to the build.
Declaration
public SceneAsset Scene { get; set; }
Property Value
Type | Description |
---|---|
Scene |
Methods
AddSceneToBuildSettings(SceneAsset, bool)
Adds a Scene to Build Settings.
Declaration
public static void AddSceneToBuildSettings(SceneAsset scene, bool enabled = true)
Parameters
Type | Name | Description |
---|---|---|
Scene |
scene | The SceneAsset to check |
bool | enabled | If true, will add the scene enabled in the BuildSettings, otherwise it's added disabled |
AutoComplete()
Auto-completes the criterion.
Declaration
public override bool AutoComplete()
Returns
Type | Description |
---|---|
bool | True if the auto-completion succeeded. |
Overrides
EvaluateCompletion()
Evaluates if the criterion is completed.
Declaration
protected override bool EvaluateCompletion()
Returns
Type | Description |
---|---|
bool | True if completed |
Overrides
SceneIsAddedToBuildSettings(SceneAsset, bool)
Is a specific Scene added to Build Settings.
Declaration
public static bool SceneIsAddedToBuildSettings(SceneAsset asset, bool forceEnable = false)
Parameters
Type | Name | Description |
---|---|---|
Scene |
asset | The SceneAsset that need to be checked |
bool | forceEnable | If true, will enable the scene in the BuildSetting if it's not already enabled |
Returns
Type | Description |
---|---|
bool | True if the given scene is in the Build Settings |
StartTesting()
Starts testing of the criterion.
Declaration
public override void StartTesting()
Overrides
StopTesting()
Stops testing of the criterion.
Declaration
public override void StopTesting()