void OnValidate() { VoxelPlayEnvironment env = VoxelPlayEnvironment.instance; if (env != null) { env.UpdateMaterialProperties(); } }