文档

Unity Engine

Unity Engine

LoadableObjectIdToObject(LoadableObjectId)

Retrieve the Object referenced by a LoadableObjectId.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static Object LoadableObjectIdToObject(LoadableObjectId loadableObjectId)

Parameters

loadableObjectId

The LoadableObjectId to convert.

Returns

Type

Description

ObjectThe Unity Object referenced by the LoadableObjectId, or null if the reference is invalid.

Remarks

This method returns the object in the Editor source asset, not the object in the build output.