Version: 2021.1
LanguageEnglish
  • C#

ObjectSelectorTargetInfo

struct in UnityEditor.SearchService

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

A structure that contains information about an item that is about to be shown.

Properties

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.

Constructors

ObjectSelectorTargetInfoCreates an ObjectSelectorTargetInfo.

Public Methods

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.