Skip to content

Property Support

Compare
Choose a tag to compare
@MerlinVR MerlinVR released this 09 Jul 00:29
· 589 commits to master since this release
9418913

This release requires the latest VRCSDK

Features

  • #85: Support for user defined C# properties on UdonSharpBehaviours implemented by @mika-f
    Property syntax with getters and setters is now valid, for example this works now:
float _myFloat = 5f;
public float MyFloatProperty
{
    get { return _myFloat; }
    set { _myFloat = value; }
}

private void Start()
{
    Debug.Log(MyFloatProperty);
}
  • #87: Support for Udon's new OnVariableChange events via FieldChangeCallback. This can be used to let properties automatically execute their setter when network sync updates the marked field.
  • 98f8c87: NoVariableSync mode will now attempt to match the common variable sync mode between UdonBehaviours on the same GameObject. This means you can now use your non-synced scripts on GameObjects with manually synced scripts.
  • d61ba6d: Support for PostLateUpdate event

Fixes

  • a9642c0: Fix scene getting dirtied redundantly when using NoVariableSync
  • fe79cc5: Fix handling for updating prefab properties in the scene
  • 61f725a: Remove collision transfer option from UdonBehaviour inspector and force to off since it is no longer respected by the client.
  • 603ae98: Fix foreach loops on iterators that are retrieved from expressions while inside recursive methods, reported by GlitchyDev