コード例 #1
0
        private void Report()
        {
            var str  = LogCollector.GetLogString();
            var path = Application.temporaryCachePath + "/logs.txt";

            File.WriteAllText(path, str);
            #if STENCIL_NATIVE_SHARE
            if (!Application.isEditor)
            {
                new NativeShare()
                .AddFile(path, "text/plain")
                .Share();
            }
            #endif
            Debug.Log($"Share: {path}");
        }