Skip to main content

GameObject.GetAllLuaScripts()

Returns an array of all Lua scripts that attached to the game object.

Returns:

typeDescription
LuaBehaviour[]array of all Lua scripts that attached to the game object.

Usage

---@type GameObject
local gameobject;


local val0 = gameobject.GetAllLuaScripts()