美文网首页
Unity Tips

Unity Tips

作者: iLeen | 来源:发表于2020-12-16 13:19 被阅读0次

    [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
    [UnityEditor.InitializeOnLoadMethod]

    [DefaultExecutionOrder(-50)]

    // .NET 4.x
    Debug.Log($"Player health: {Health}");

    await
    WaitUntil

    打印堆栈
    string trackStr = new System.Diagnostics.StackTrace().ToString();
    Debug.Log ("Stack Info:" + trackStr);

    BitConverter.GetBytes(float)
    BitConverter.ToSingle(byteArr, 0)

    this.GetType().Name 当前类名

    Enum.GetValues(typeof(MyEnum));

    Application.logMessageReceived

    csc.rsp C#编译选项

    MonoPInvokeCallback:C调C#
    ZFBrowser
    https://blog.csdn.net/han15939423461/article/details/78033511
    https://blog.csdn.net/yhx956058885/article/details/107004676

    Assets/Plugins/Android/xxx.jar
    Assets/zzz/Plugins/Android/xxx.jar
    Asset/Plugins/Android/zzz/libs/xxx.jar

    有project.properties时 jar包的Android属性要勾掉

    下载文件
    HttpWebRequest c#
    UnityWebRequest
    WWW 老api
    WebClient

    相关文章

      网友评论

          本文标题:Unity Tips

          本文链接:https://www.haomeiwen.com/subject/hpvngktx.html