This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NOTE: The current U# compiler will log an error, it however still compiles and functions correctly! | |
public class MyCustomClass : DataDictionary | |
{ | |
public static MyCustomClass ctor() // you can call this whatever you want, New(), Create(), or here ctor() | |
{ | |
var instance = (MyCustomClass)new DataDictionary(); | |
instance["player"] = new DataToken(Networking.LocalPlayer); // Example of something you might want to do in the constructor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UdonSharp; | |
using UnityEngine; | |
using VRC.SDK3.Data; | |
namespace THH.Utility | |
{ | |
public static class VRCDataExtensions | |
{ | |
public static void Log(this DataToken token) | |
{ |