Version: 2021.2
LanguageEnglish
  • C#

ObjectIdentifier

struct in UnityEditor.Build.Content

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

Struct that identifies a specific object project wide.

Note: this struct and its members exist to provide low-level support for the Scriptable Build Pipeline package. This is intended for internal use only; use the Scriptable Build Pipeline package to implement a fully featured build pipeline. You can install this via the Unity Package Manager.

Properties

filePathThe file path on disk that contains this object. (Only used for objects not known by the AssetDatabase).
fileTypeType of file that contains this object.
guidThe specific asset that contains this object.
localIdentifierInFileThe index of the object inside a serialized file.

Public Methods

EqualsReturns true if the objects are equal.
GetHashCodeGets the hash code for the ObjectIdentifier.
ToStringReturns a nicely formatted string for this ObjectIdentifier.

Static Methods

ToInstanceIDTries to return the InstanceID that represents this ObjectIdentifier.
ToObjectTries to find, load, and return the Object that represents this ObjectIdentifier.
TryGetObjectIdentifierTries to convert a persistent Object into an ObjectIdentifier.

Operators

operator !=Returns true if the ObjectIdentifiers are different.
operator <Returns true if the first ObjectIdentifier is less than the second ObjectIdentifier.
operator ==Returns true if the ObjectIdentifiers are the same.
operator >Returns true if the first ObjectIdentifier is greater than the second ObjectIdentifier.