Class SkyboxReference
Namespace: ValveResourceFormat.Renderer.Entities
Assembly: Renderer.dll
skybox_reference. Places a map as the 3D sky, which the last one to activate shows, seen through the first sky_camera of the sky's world group.
public sealed class SkyboxReference : BaseEntityInheritance
object ← BaseEntity ← SkyboxReference
Inherited Members
BaseEntity.Scene, BaseEntity.RootNode, BaseEntity.Transform, BaseEntity.RigidTransform, BaseEntity.LayerName, BaseEntity.EntitySystem, BaseEntity.Data, BaseEntity.SpawnData, BaseEntity.NameFixup, BaseEntity.SpawnGroup, BaseEntity.Classname, BaseEntity.TargetName, BaseEntity.SpawnFlags, BaseEntity.SpawnTransform, BaseEntity.Owner, BaseEntity.MoveParent, BaseEntity.EntityScale, BaseEntity.ModelName, BaseEntity.Origin, BaseEntity.Angles, BaseEntity.WorldOrigin, BaseEntity.WorldAngles, BaseEntity.Velocity, BaseEntity.AngularVelocity, BaseEntity.NextThink, BaseEntity.MoveDoneTime, BaseEntity.IsRemoved, BaseEntity.Collider, BaseEntity.IsSolid, BaseEntity.IsTrigger, BaseEntity.IsDrawn, BaseEntity.IsShown, BaseEntity.IsCollidable, BaseEntity.TouchingEntities, BaseEntity.HasSpawnFlags<TSpawnFlags>(TSpawnFlags), BaseEntity.Spawn(), BaseEntity.Activate(), BaseEntity.Think(), BaseEntity.RoundStart(), BaseEntity.MoveDone(), BaseEntity.TryGetTouchBounds(out Vector3, out Vector3), BaseEntity.ObjectCaps, BaseEntity.Use(BaseEntity?), BaseEntity.Teleport(Vector3, Vector3?), BaseEntity.AcceptInput(string, EntityInputData), BaseEntity.SetNextThink(float), BaseEntity.SetMoveDoneTime(float), BaseEntity.GetSurfaceVelocity(Vector3), BaseEntity.AngleMod(float)
Remarks
The entity loads nothing itself. The spawn group it is in loads the map it places, as it does for a point_prefab, before the reference spawns.
TODO: Without a sky camera the game uses the sky_camera named by an ActivateSkybox input, else the newest sky_camera, even one in the main world group, so a map with only a sky_camera draws itself as its sky. Neither the fallback nor the input is handled here, and a sky in the main world group is never drawn.
Constructors
SkyboxReference(EntitySystem, EntitySpawnInfo)
Initializes a skybox_reference from its keyvalues.
public SkyboxReference(EntitySystem system, EntitySpawnInfo spawnInfo)Parameters
system EntitySystem
spawnInfo EntitySpawnInfo
Properties
SkyWorldGroup
Gets the world group the sky is loaded into, the reference's own when it names none, such as skyboxWorldGroup0.
public string? SkyWorldGroup { get; }Property Value
string?
Methods
Activate()
Called once every entity of its spawn group has spawned, to resolve other entities by name.
public override void Activate()FindSkyCamera()
Finds the camera the sky is seen through, looked for again until there is one.
public SkyCamera? FindSkyCamera()Returns
The first sky_camera of the sky's world group, or null.
OnRemove()
Called as the entity leaves the world, before its nodes leave the scene. Release anything the entity started here, such as a playing sound.
protected override void OnRemove()
