Version: 
Back to list

Scene :: createCompleteTree

Synopsis

   Create a complete scene tree

GUI Dialog

   

Script function

   scene.createCompleteTree(tree[, root[, replaceRoot]]) -> occurrences

Parameters

   tree (PackedTree) :
   root (Occurrence[optional] : Specify the root occurrence of the scene
   replaceRoot (Bool[optional] : If true, the root occurrence will be replaced by the root of the given tree, else it will be added as a child

Return value

   occurrences (OccurrenceList) : Create occurrences (equivalent to tree.occurrences)