matt
17 hours ago
#1
August Update : news/august-2025
#if SERVER
blocks to ensure it only runs on the server: protected override void OnUpdate() { #if SERVER Log.Info( $"This is a server update!" ); #else Log.Info( $"This is a client update!" ); #endif }
.Server.cs
will automatically be excluded.Vector2.Up
, Vector2.Down
, Vector2.Left
, and Vector2.Right
have also been reconfigured to follow the 2D graphics standard:SamplerState
from C# which forced users to create workarounds. You can now define one and use the Attributes
API to pass it to your shader. This is also available on the CommandList
API.Shader
SamplerState mySampler < Attribute( "mySampler" ); >;
C#
var anisotropicSampler = new SamplerState { Filter = FilterMode.Anisotropic, AddressU = AddressMode.Wrap, AddressV = AddressMode.Wrap, AddressW = AddressMode.Clamp, MipLodBias = 0.0f, MaxAnisotropy = 16 }; var pointSampler = sampler with { Filter = FilterMode.Point }; Graphics.Attributes.Set( "mySampler", pointSampler);
Position
and Size
properties are now shown when any Rectangle(s) are selected.Min
and Max
properties are shown in place of Position and Size.