Skip to content

Api > GameObject > GetAllLuaScripts()


GameObject.GetAllLuaScripts()⚓︎

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

Returns:⚓︎

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

Usage⚓︎

---@type GameObject
local gameobject;


local val0 = gameobject.GetAllLuaScripts()