Create resource references. More...
Public Member Functions | |
| ResourceReference (string resourceID) | |
| Creates a resource reference using a resource ID. | |
| ResourceReference (T resource) | |
| Creates a resource reference. | |
| T | GetTarget (Node context) |
| Gets the target resource to which the resource reference points. | |
Public Member Functions inherited from ResourceReferenceBase | |
| ResourceReferenceBase (NodeResource resource) | |
| ResourceReferenceBase (string resourceID) | |
| override bool | Equals (object obj) |
| bool | Equals (ResourceReferenceBase other) |
| override int | GetHashCode () |
| T | GetTarget< T > (Node context) |
| override string | ToString () |
Public Member Functions inherited from ProjectItemReference< T > | |
| T | GetTarget (Node context) |
| Gets the node to which a relative node reference points. | |
Additional Inherited Members | |
Static Public Attributes inherited from ResourceReferenceBase | |
| const string | ResourceReferencePrefix = "KzResourceID:" |
Properties inherited from ResourceReferenceBase | |
| bool | IsAbsoluteReference [get] |
| NodeResource | Resource [get] |
| string | ResourceID [get] |
Properties inherited from ProjectItemReference< T > | |
| bool | IsAbsoluteReference [get] |
| Gets whether a project item reference is an absolute reference. | |
|
inline |
Creates a resource reference using a resource ID.
| resourceID | The resource ID of the resource to which you want to point. |
Examples
To create a resource reference using a resource ID:
|
inline |
Creates a resource reference.
| resource | The resource to which you want to point. |
Examples
To create a resource reference that points to a texture resource: