ILayerManagerAddLayer Method |
Adds a layer in a specific position.
Namespace:
TouchScript
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax bool AddLayer(
TouchLayer layer,
int index = -1,
bool addIfExists = true
)
Parameters
- layer
- Type: TouchScript.LayersTouchLayer
The layer to add. - index (Optional)
- Type: SystemInt32
Layer index to add the layer to or -1 to add to the end of the list. - addIfExists (Optional)
- Type: SystemBoolean
if set to true move the layer to another index if it is already added; don't move otherwise.
Return Value
Type:
Boolean
True if the layer was added.
See Also