Skip to content

Find Property by script

Nectunia edited this page Oct 26, 2020 · 1 revision

From a GameObject (ex : myGameObject)

myGameObject.GetProperties() : Get all Property components in the GameObject

myGameObject.GetPropertiesInChildren() : Get all Property components in the GameObject and its childrens

myGameObject.GetProperty() : Get the Property component in the GameObject

myGameObject.GetPropertyInChildren() : Get the Property component in the GameObject and its childrens

In the whole scene

Property.GetProperties() : Get all Property components in the scene or in a specific GameObject

Property.GetPropertiesInChildren() : Get all Property components in the scene or in a specific GameObject and its childrens

Property.GetProperty() : Get the Property component in the scene or in a specific GameObject

Property.GetPropertyInChildren() : Get the Property component in the scene or in a specific GameObject and its childrens

Property.Exists() : Does a Property component exist in the scene or in a specific GameObject ?

Property.ExistsInChildren() : Does a Property component exist in the scene or in a specific GameObject and its childrens ?

Clone this wiki locally