文档

Unity Engine

Unity Engine

ObjectSelectorTargetInfo

A structure that contains information about an item that is about to be shown.
阅读时间1 分钟最后更新于 1 个月前

Definition

警告
Removed. ObjectSelectorTargetInfo has been deprecated.
public struct ObjectSelectorTargetInfo

Constructors

Properties

Property

Description

globalObjectIdThe object's global identifier. It is always valid.
targetObjectIf the object is already loaded in Unity, this is its instance. The instance can be null.
typeIf the object is currently loaded in Unity, this is its underlying type. The type can be null.

Methods

Method

Description

LoadObjectLoads an object instance if it is not already loaded in Unity. This can return null if the object is part of a Scene or Prefab that is not loaded.