作者:Meta42链接:https://www.zhihu.com/question/29097415/answer/229015898来源:知乎著作权归作者所有.商业转载请联系作者获得授权,非商业转载请注明出处. 1.DoTween 做动画非常的方便,直接链式结构写代码也非常的快.避免代码里面控制物体还需要写协程或者再Update里面循环. using System.Collections; using System.Collections.Generic; using UnityEngine
需求是,使用native方式,读取apk包里的lua代码,读进c#,做解密 一准备unity工程 public class GameMain : MonoBehaviour { public const string libName = "TGNative"; public Text content; [DllImport(libName)] public static extern int ReadAsset(string fileName, byte[] buffer, int s
将某二进制文件放在Resources目录下,希望用Resources.Load<TextAsset>的方式读取,发现TextAsset是null 查阅Unity文档得知,使用Resources.Load读二进制文件,则文件扩展名必须为bytes 另外注意,Resources.Load的路径不要包含扩展名 Please notice that files with the .txt and .bytes extension will be treated as text and binary f
有如下XML文件: <?xml version="1.0" encoding="UTF-8"?> <DataNode> <province id =" name="江苏"><!--省--> <city id =" name ="南京"></city><!--城市--> <city id =" name =&q