Class IComponentAttachment
Base component used by system graph.
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: Global Namespace
Syntax
[Serializable]
public class IComponentAttachment : MonoBehaviour
Fields
_guid
The unique identifier for this Component attachment
Declaration
[SerializeField]
protected string _guid
Field Value
| Type | Description |
|---|---|
| String |
_parent
Reference to the parent systemgraph, set at runtime during bindings creation
Declaration
[NonSerialized]
protected SystemGraphComponent _parent
Field Value
| Type | Description |
|---|---|
| SystemGraphComponent |
Name
Component name, to be used by the actual component type (property, binding).
Declaration
[SerializeField]
public string Name
Field Value
| Type | Description |
|---|---|
| String |
ParentGuid
Guid of the system graph using this component.
Declaration
[SerializeField]
public string ParentGuid
Field Value
| Type | Description |
|---|---|
| String |
Properties
Guid
Guid for the component to be used by the actual component type.
Declaration
public string Guid { get; set; }
Property Value
| Type | Description |
|---|---|
| String | The unique identifier of this component. |
Parent
Reference to the parent systemgraph if it exists.
Declaration
public SystemGraphComponent Parent { get; set; }
Property Value
| Type | Description |
|---|---|
| SystemGraphComponent | Parent SystemGraphComponent owning this attachment |
Methods
Bind()
A function that is run when the bindings are done for system graph. Good place for initialization code.
Declaration
public virtual void Bind()
GetKey()
Gets the key that defines this component attachment, the key is used to identify the component in a map.
Declaration
public virtual string GetKey()
Returns
| Type | Description |
|---|---|
| String | Custom Key for that component attachment |