SetParent

From MaratisWiki
(Difference between revisions)
Jump to: navigation, search
m
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
Set the object's parent :
+
{{lua-function|setParent|object, parent}}
 +
 
 +
Set the object's parent.
 +
 
 +
{{lua-function-param|object|object to operate on}}
 +
{{lua-function-param|parent|parent}}
  
 
  setParent(object, parent)
 
  setParent(object, parent)
  
0 can be used to reset parenting :
+
Zero can be used to reset parenting:
  
 
  setParent(object, 0)
 
  setParent(object, 0)
  
 
[[Category:Lua scripting]]
 
[[Category:Lua scripting]]
 +
[[Category:Lua function]]
 +
[[Category:Object]]

Latest revision as of 01:14, 9 February 2014

setParent(object, parent)

Set the object's parent.

  • object : object to operate on
  • parent : parent
setParent(object, parent)

Zero can be used to reset parenting:

setParent(object, 0)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox