Class SetMetadata
Add a metadata property to input
Inherited Members
Namespace: UnityEditor.PixyzPlugin4Unity.RuleEngine
Assembly: Unity.Pixyz.Plugin4Unity.Editor.dll
Syntax
public class SetMetadata : ActionInOut<IList<GameObject>, IList<GameObject>>
Fields
| Name | Description |
|---|---|
| addComponentIfMissing | Should the component be added if not present |
| propertyName | The name of the property to add |
| propertyValue | The value of the property to add |
Properties
| Name | Description |
|---|---|
| id | Unique id of this action, generated when the file is generated |
| menuPathRuleEngine | The path used for the contextual menu in the RuleEngine |
| menuPathToolbox | The path used for the contextual menu in the Toolbox |
| tooltip | Quick description to describe the behavior of this action |
Methods
| Name | Description |
|---|---|
| run(IList<GameObject>) | Execute the behavior of this action by setting a metadata propety on each elements |