Game.Prefabs.CompositionMeshFlags
Assembly: Assembly-CSharp
Namespace: Game.Prefabs
Type: public enum
Base: System.Enum (underlying type: int)
Summary:
Flags used by prefab composition mesh code to indicate special mesh handling. This enum is marked with [Flags], so values are intended to be combined bitwise. Currently only a single flag is defined:
- Invert — typically used to invert the mesh orientation, normals, or winding when composing prefabs (implementation-specific).
Fields
Invert = 1
Indicates the mesh should be inverted. Because the enum is marked with [Flags], this value can be combined with other flags if additional flags are added later.
Properties
- (none)
This enum defines no properties.
Constructors
- (none — enums use the default value semantics of System.Enum)
You can obtain enum values by assignment or casting; there are no explicit constructors to call.
Methods
- (none declared on this enum)
Standard System.Enum methods (ToString, HasFlag, etc.) are available.
Usage Example
// Assign the flag:
CompositionMeshFlags flags = CompositionMeshFlags.Invert;
// Check the flag:
bool isInverted = (flags & CompositionMeshFlags.Invert) != 0;
// or using HasFlag:
bool isInverted2 = flags.HasFlag(CompositionMeshFlags.Invert);
// Set the flag:
flags |= CompositionMeshFlags.Invert;
// Clear the flag:
flags &= ~CompositionMeshFlags.Invert;
// Toggle the flag:
flags ^= CompositionMeshFlags.Invert;
Notes: - The [Flags] attribute allows combining multiple values with bitwise operators. Currently only the Invert flag exists (value 1), but code should handle the possibility of additional flags being added in future updates.