unity3d制作手游世界地图时如何动态加载地图和模型?
方法1:在资产目录中创建新的资源,将图片和模型放入其中,并使用
C#代码:
公共静态Texture2D YourTexture
YourTexture =资源。Load("YourImage ",typeof(Texture2D))作为texture 2d;//必须忽略YourImage扩展。
其他视图资源类
方法2:将包资源打包到。unity3d格式并由WWW调用。善用搜索寻找答案
C#代码:
公共静态Texture2D YourTexture
YourTexture =资源。Load("YourImage ",typeof(Texture2D))作为texture 2d;//必须忽略YourImage扩展。
其他视图资源类
方法2:将包资源打包到。unity3d格式并由WWW调用。善用搜索寻找答案