Class SceneObjectGuid
Generates a globally unique identifier (System.Guid) for a GameObject that has this component.
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.Tutorials.Core
Assembly: Unity.Tutorials.Core.dll
Syntax
[ExecuteInEditMode]
[DisallowMultipleComponent]
[AddComponentMenu("")]
public class SceneObjectGuid : MonoBehaviour
Remarks
This component is removed from the GameObject when were are not in Editor Mode.
Properties
Id
The unique identifier.
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
string |