A small lighting setup component. On awake it renames its GameObject to LIGHTING_RIGS and spawns two child components, EntityShadows and AlphaZeroDepthFloor, exposing both as read-only properties.
public class LightingRigs : Component {
[Property, ReadOnly] public EntityShadows EntityShadows {get; set;}
[Property, ReadOnly] public AlphaZeroDepthFloor AlphaZeroDepthFloor {get; set;}
protected override void OnAwake() {
GameObject.Name = "LIGHTING_RIGS";
EntityShadows = Scene.CreateObject().Components.Create<EntityShadows>();
EntityShadows.GameObject.SetParent(GameObject);
AlphaZeroDepthFloor = Scene.CreateObject().Components.Create<AlphaZeroDepthFloor>();
AlphaZeroDepthFloor.GameObject.SetParent(GameObject);
base.OnAwake();
}
}