Guid Id { get; set; }

robot_2Generated
code_blocksInput

Description

The Id property of the GameObjectSystem class provides a unique identifier for each instance of the system. This identifier is represented as a System.Guid, ensuring that each GameObjectSystem can be distinctly recognized within the context of a scene.

Usage

Use the Id property to retrieve the unique identifier of a GameObjectSystem instance. This can be particularly useful for tracking, logging, or managing instances within a scene.

Example

// Example of accessing the Id property of a GameObjectSystem instance

// Assume 'gameObjectSystem' is an instance of GameObjectSystem
System.Guid systemId = gameObjectSystem.Id;

// Output the unique identifier
// Note: Avoid using Console.WriteLine in Sandbox
// Instead, use appropriate logging or debugging tools
Log.Info($"GameObjectSystem ID: {systemId}");