文档

Unity Engine

Unity Engine

ToObject(ObjectIdentifier)

Tries to find, load, and return the Object that represents this ObjectIdentifier.
阅读时间1 分钟最后更新于 1 个月前

Definition

public static Object ToObject(ObjectIdentifier objectId)

Parameters

Returns

Type

Description

Object

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.