actors.get
Reads a reflected actor or component property.
Syntax
ue.actors.get(actor: ActorReference, property: string, component?: string) -> any?, string?Parameters
| Parameter | Type | Description |
|---|---|---|
actor | ActorReference | String query or actor descriptor. |
property | string | Reflected property name. |
component | string? | Optional component name. |
Returns
| Type | Description |
|---|---|
any | Reflected property value. |
nil, string | Lookup or reflection failed. |
Example
local health, err = ue.actors.get("Player", "Health")
if not health then print(err) end