find_first
Returns the first loaded instance of an Unreal class.
Syntax
ue.find_first(class_name: string) -> UObjectProxy?, string?Parameters
| Parameter | Type | Description |
|---|---|---|
class_name | string | Unreal class name. Derived-class instances are included. |
Returns
| Type | Description |
|---|---|
UObjectProxy | The first matching object. |
nil, string | No matching instance was found. |
Example
local game = assert(ue.find_first("BreakerGameInstance"))
print(game:path())