iso2/effects/CustomShadowCsmLight.cs

A DirectionalLight component that exposes a CascadeCount property and pushes it to the underlying SceneDirectionalLight's ShadowCascadeCount in OnDirty. Also logs the value each time it is dirtied.

Rough Code
public class CustomShadowCSMLight : DirectionalLight {
	[Property, MakeDirty] public int CascadeCount {get; set;}
	public SceneDirectionalLight Light {get; set;}
	protected override SceneLight CreateSceneObject() {
		Light = (SceneDirectionalLight)base.CreateSceneObject();
		return Light;
	}

	protected override void OnDirty() {
		Light.ShadowCascadeCount = CascadeCount;
		Log.Info(Light.ShadowCascadeCount);
		base.OnDirty();
	}
}