SetParent

From MaratisWiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "Set the object's parent : setParent(object, parent) 0 can be used to reset parenting : setParent(object, 0)")
 
m
 
(3 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 function]]
 +
[[Category:Object]]

Latest revision as of 00: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