Game.Prefabs.LevelInfo
Assembly:
Assembly-CSharp (typical game assembly; actual assembly may vary)
Namespace:
Game.Prefabs
Type:
class
Base:
System.Object
Summary:
Serializable data container used to store a single integer value (commonly used for storing a "level" or tier value for a prefab). The class is marked with [Serializable], so it can be serialized by Unity/C# serializers and included in save data or inspector-driven data structures. The class contains a single public field and relies on the default parameterless constructor.
Fields
public int m_Value
Holds the level/value. Public and directly accessible — used for simple data storage and serialization. Default value is 0 (when a new instance is constructed).
Properties
- None
Constructors
public LevelInfo()
Compiler-provided default constructor. Initializes m_Value to 0.
Methods
- None
Usage Example
// Create and use a LevelInfo instance
var levelInfo = new Game.Prefabs.LevelInfo();
levelInfo.m_Value = 3;
// Example: storing in a containing object or serializing
// myPrefab.level = levelInfo;