Game.Prefabs.AtmospherePrefabData
Assembly: Assembly-CSharp
Namespace: Game.Prefabs
Type: struct
Base: System.ValueType, Unity.Entities.IComponentData, Unity.Entities.IQueryTypeParameter
Summary:
AtmospherePrefabData is an empty/tag component used to mark or identify prefab entities related to atmosphere systems (e.g., sky, lighting, atmospheric effects) in the game's ECS world. It is decorated with [StructLayout(LayoutKind.Sequential, Size = 1)] so the struct has a defined size (1 byte) and a stable layout for interop/managed-unmanaged scenarios. Implementing IComponentData makes it a component in Unity.Entities, and implementing IQueryTypeParameter allows the type to be used in query type parameter contexts (e.g., filtering queries by this tag).
Fields
- This struct defines no fields.
The type is intentionally empty and used as a tag; the StructLayout attribute forces a non-zero size (1 byte).
Properties
- This type exposes no properties.
Constructors
- No explicit constructors are defined.
The type has the implicit parameterless/default constructor that all value types have.
Methods
- No methods are defined.
Usage Example
// Marking a prefab entity with the tag component
var entityManager = World.DefaultGameObjectInjectionWorld.EntityManager;
Entity prefabEntity = /* obtain or create prefab entity */;
entityManager.AddComponentData(prefabEntity, new AtmospherePrefabData());
// Querying for all atmosphere-prefabs in a SystemBase
Entities
.WithAll<AtmospherePrefabData>()
.ForEach((Entity e) =>
{
// Process atmosphere-related prefab entity
})
.WithoutBurst()
.Run();