Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ToObject(ObjectIdentifier)

Tries to find, load, and return the Object that represents this ObjectIdentifier.
Read time 1 minuteLast updated 10 days ago

Definition

public static Object ToObject(ObjectIdentifier objectId)

Parameters

The object identifier to convert.

Returns

Type

Description

ObjectThe object that the specified object identifier references.

Remarks

Returns null if the Object cannot be found or loaded. This can happen if the asset that contains the Object identified was deleted or the ObjectIdentifier is invalid.