Version: 
Back to list

Scene :: getComponent

Synopsis

   Returns a component on an occurrence

GUI Dialog

   

Script function

   scene.getComponent(occurrence, componentType[, followPrototypes]) -> component

Parameters

   occurrence (Occurrence) : The occurrence
   componentType (ComponentType) : Type of the component
   followPrototypes (Bool[optional] : If true and if the component is not set on the occurrence, try to find it on its prototyping chain

Return value

   component (Component) : The component