Function: resolveCustomReference()
ts
function resolveCustomReference(
scene,
owner,
reference
):
| SceneNodeHandle
| SceneComponentHandle<Record<string, unknown>>
| null;Resolves a node/component reference inside the owner's document scope.
- Scene documents resolve against root scene nodes.
- Prefab documents resolve inside the owner's own Prefab instance subtree, so the same uid in another instance does not collide.
- Children expanded from a nested Prefab belong to another document and are not returned.
Asset references return null; use resolveCustomAsset instead.
Parameters
| Parameter | Type |
|---|---|
scene | SceneInstance |
owner | SceneNodeHandle |
reference | CustomPropertyReference | null |
Returns
| SceneNodeHandle | SceneComponentHandle<Record<string, unknown>> | null
