actors.proxy
Returns a UObject proxy for an actor or component.
Syntax
ue.actors.proxy(actor: ActorReference, component?: string) -> UObjectProxy?, string?Parameters
| Parameter | Type | Description |
|---|---|---|
actor | ActorReference | String query or actor descriptor. |
component | string? | Optional component name. |
Returns
| Type | Description |
|---|---|
UObjectProxy | Matching actor or component. |
nil, string | Actor or component was not found. |
Example
local player = assert(ue.actors.proxy("Player"))
local movement = assert(ue.actors.proxy(
"Player",
"CharacterMovement"
))