Api > NavMeshAgent > GetAllLuaScripts()
NavMeshAgent.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 NavMeshAgent
local navmeshagent;
local val0 = navmeshagent.GetAllLuaScripts()