Method GetTrackedObject
GetTrackedObject<T>(Object, bool)
Returns the TrackedObjects for the target component or creates a new instance if create is set to true.
Declaration
public T GetTrackedObject<T>(Object target, bool create = true) where T : TrackedObject, new()
Parameters
| Type | Name | Description |
|---|---|---|
| Object | target | The Target Object to track. |
| bool | create | Creates a new Tracked Object if one can not be found. |
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T | The Type of TrackedObject that should be found or added. |
GetTrackedObject(Object)
Returns the TrackedObjects for the target component or null if one does not exist. See GetTrackedObject<T>(Object, bool) for a version that will create a new TrackedObject if one does not already exist.
Declaration
public TrackedObject GetTrackedObject(Object target)
Parameters
| Type | Name | Description |
|---|---|---|
| Object | target | The target object to search for. |
Returns
| Type | Description |
|---|---|
| TrackedObject | The TrackedObjects or null if one could not be found. |