OnSelect Event

Definition

function OnSelect()

end

Description

This event is specific to the prefab instance object. Suppose a script that has an OnSelect() event is attached to a prefab object. In this case, the OnSelect() event is called when an instance of that prefab is selected at runtime by the SelectPrefabInstances function.

Example

function OnSelect()
    PrintConsole("\nOnSelect() Event was called")
end
adminOnSelect Event