setName Method

Sets the name of the node.

setName(name);

 

Parameter

Description

name

The node name

Return Value

If the method succeeds, the return value is true. If the method fails, the return value is false. SGWorld.lastError contains the failure reason.