Class SceneObjectGuidManager
Manages SceneObjectGuids.
Inherited Members
Namespace: Unity.Tutorials.Core
Assembly: Unity.Tutorials.Core.dll
Syntax
public class SceneObjectGuidManager
Properties
Instance
Returns the singleton instance.
Declaration
public static SceneObjectGuidManager Instance { get; }
Property Value
Type | Description |
---|---|
SceneObjectGuidManager |
See Also
Methods
Contains(string)
Does the manager contain a Component for specific GUID.
Declaration
public bool Contains(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | The GUID to check |
Returns
Type | Description |
---|---|
bool | True if the given GUID is present in the component lists, false otherwise |
See Also
GetComponent(string)
Returns the GUID Component for a specific GUID, if found.
Declaration
public SceneObjectGuid GetComponent(string id)
Parameters
Type | Name | Description |
---|---|---|
string | id | The GUID of the component to retrieve |
Returns
Type | Description |
---|---|
SceneObjectGuid | The SceneObjectGuid of the given GUID if found, null otherwise |
See Also
Register(SceneObjectGuid)
Registers a GUID component.
Declaration
public void Register(SceneObjectGuid component)
Parameters
Type | Name | Description |
---|---|---|
SceneObjectGuid | component | The Component to register |
See Also
Unregister(SceneObjectGuid)
Unregisters a GUID Component.
Declaration
public bool Unregister(SceneObjectGuid component)
Parameters
Type | Name | Description |
---|---|---|
SceneObjectGuid | component | The component to remove |
Returns
Type | Description |
---|---|
bool | True if the Component was found and unregistered, false otherwise. |