Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


LoadableObjectIdToObject(LoadableObjectId)

Retrieve the Object referenced by a LoadableObjectId.
Read time 1 minuteLast updated 4 days ago

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.