Description
The EndInstance
method is a static method of the Gizmo
class in the Sandbox namespace. It is used to end a previously started gizmo instance, which is represented by the Gizmo.Instance
parameter. This method is essential for properly managing the lifecycle of gizmo instances, ensuring that resources are released and the instance is properly terminated.
Usage
To use the EndInstance
method, you need to pass a Gizmo.Instance
object that represents the gizmo instance you want to end. This method should be called after you have finished using the gizmo instance to ensure that it is properly disposed of.
Example
// Example of using EndInstance
// Assume 'instance' is a previously created Gizmo.Instance
Gizmo.Instance instance = Gizmo.StartInstance();
// Perform operations with the gizmo instance
// ...
// End the gizmo instance when done
Gizmo.EndInstance(instance);