ObjectSelectorTargetInfo
A structure that contains information about an item that is about to be shown.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Struct
- Namespace: UnityEditor.SearchService
- Assembly: UnityEditor.CoreModule
public struct ObjectSelectorTargetInfo
Constructors
Constructor | Description |
|---|---|
| ObjectSelectorTargetInfo(UnityEditor.GlobalObjectId,UnityEngine.Object,System.Type) | Creates an ObjectSelectorTargetInfo. |
Properties
Property | Description |
|---|---|
| globalObjectId | The object's global identifier. It is always valid. |
| targetObject | If the object is already loaded in Unity, this is its instance. The instance can be null. |
| type | If the object is currently loaded in Unity, this is its underlying type. The type can be null. |
Methods
Method | Description |
|---|---|
| LoadObject | Loads 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. |