Murl Engine Lua Addon API  Version 1.0 beta
Murl.Resource.IInstance

The IInstance resource interface.

This interface provides methods to query information about any optional graph or script instances that must be created when a package has been successfully loaded.


Table members

Methods


GetResourceId()

Get the resource ID of the Resource::IGraph to instantiate.

String GetResourceId()

Returns
String The resource ID.

GetParentNodeId()

Get the ID of an existing node in the scene graph where to add the instance.

String GetParentNodeId()

Returns
String The parent node ID.

GetNumberOfReplications()

Get the desired number of replications.

Integer GetNumberOfReplications()

Returns
Integer The number of replications.

SetTags(tags)

Set optional resource tags for this object.

Boolean SetTags(Murl.Array.String tags)

Parameters
tagsThe resource tags.
Returns
Boolean true if successful.

GetTags()

Get the optional resource tags held by this object.

Murl.Array.String GetTags()

Returns
Murl.Array.String The resource tags.