Skip to content
EN

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 ​

ParameterType
sceneSceneInstance
ownerSceneNodeHandle
referenceCustomPropertyReference | null

Returns ​

| SceneNodeHandle | SceneComponentHandle<Record<string, unknown>> | null

Suity 开发者文档 · API 由 TypeDoc 从声明文件生成