robot_2Generated
code_blocksInput

Description

The NotSaved field is a member of the ComponentFlags enumeration in the Sandbox API. It is used to indicate that a component should not be saved to disk. This can be useful for components that are temporary or should not persist between sessions.

Usage

Use the NotSaved flag when you want to ensure that a component is not serialized and stored on disk. This is particularly useful for components that are meant to be transient or are only relevant during runtime.

Example

// Example of using ComponentFlags.NotSaved
public class MyComponent : Component
{
    public MyComponent()
    {
        // Set the component flags to NotSaved
        this.Flags = ComponentFlags.NotSaved;
    }
}