Class SynthesizedTrait
Namespace: Unity.MARS.Data
Syntax
public abstract class SynthesizedTrait : MonoBehaviour, ISimulatable
Properties
TraitName
Identifies the trait being applied to the Synthesized Object
Declaration
public abstract string TraitName { get; }
Property Value
Type | Description |
---|---|
String |
UpdateWithTransform
Should this trait update when its transform does?
Declaration
public abstract bool UpdateWithTransform { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
AddTrait(Int32)
Called when the SynthesizedObject around this trait is being added
Declaration
public abstract void AddTrait(int dataID)
Parameters
Type | Name | Description |
---|---|---|
Int32 | dataID | The entity that will hold all of the synthesized data |
RemoveTrait(Int32)
Called when the SynthesizedObject around this trait is being removed
Declaration
public abstract void RemoveTrait(int dataID)
Parameters
Type | Name | Description |
---|---|---|
Int32 | dataID |
UpdateTrait(Int32)
Called when the SynthesizedObject around this trait is being updated
Declaration
public abstract void UpdateTrait(int dataID)
Parameters
Type | Name | Description |
---|---|---|
Int32 | dataID | The entity that will hold all of the synthesized data |