GetTexture Data Member Function

A <TextureSliceNode> may refer to up to 16 <Texture> data source objects, and this function returns a pointer to the <Node> at the specified index, or nullptr if the <Node> does not exist. While the <TextureSliceNode> data sources should always be of type <Texture>, this cannot be guaranteed, so a <Node> pointer is returned instead of a <Texture> pointer.

Prototype

Node GetTexture( int32 p_nIndex )

Parameters

Parameter Type Parameter Name Documentation
int32p_nIndexThe index of the <Texture> data source you wish to retrieve.

Examples

Copy Text To Clipboard

None published. Please look for an example in the Scenome Scripting Language code base.