Version:
2021.1
2020.2
2020.1
2019.2
2019.1
2018.3
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