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 ProjectItemReference< T > | |
T | GetTarget (Node context) |
Gets the node to which a relative node reference points. | |
Additional Inherited Members | |
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: