Version: 
Back to list

Scene :: addComponent

Synopsis

   Add a component to an occurrence

GUI Dialog

   

Script function

   scene.addComponent(occurrence, componentType) -> component

Parameters

   occurrence (Occurrence) : The occurrence to add the new component
   componentType (ComponentType) : Type of the component

Return value

   component (Component) : The new component added to occurrence