Class ComponentAddedCriterion
Criterion for checking that specific Components are added to a GameObject.
Inherited Members
Namespace: Unity.Tutorials.Core.Editor
Syntax
public class ComponentAddedCriterion : Criterion
Properties
RequiredComponents
Returns the required Components.
Declaration
public IList<Type> RequiredComponents { get; set; }
Property Value
Type | Description |
---|---|
IList<Type> |
TargetGameObject
Returns the target GameObject.
Declaration
public GameObject TargetGameObject { get; set; }
Property Value
Type | Description |
---|---|
GameObject |
Methods
AutoComplete()
Auto-completes the criterion.
Declaration
public override bool AutoComplete()
Returns
Type | Description |
---|---|
Boolean | True if the auto-completion succeeded. |
Overrides
EvaluateCompletion()
Evaluates if the criterion is completed.
Declaration
protected override bool EvaluateCompletion()
Returns
Type | Description |
---|---|
Boolean |
Overrides
GetFutureObjectReferences()
Returns FutureObjectReference for this Criterion.
Declaration
protected override IEnumerable<FutureObjectReference> GetFutureObjectReferences()
Returns
Type | Description |
---|---|
IEnumerable<FutureObjectReference> |
Overrides
OnValidate()
Destroys unused future reference assets and updates future references.
Declaration
protected override void OnValidate()
Overrides
StartTesting()
Starts testing of the criterion.
Declaration
public override void StartTesting()
Overrides
StopTesting()
Stops testing of the criterion.
Declaration
public override void StopTesting()