当前位置: 首页 > news >正文

黑彩网站建设运营wordpress cms模板

黑彩网站建设运营,wordpress cms模板,seo建站系统,定制商品的网站建设最近在做动态加载读取外部模型的功能使用了triLib插件#xff0c;废话不多说直接干货。 第一步下载导入插件#xff0c;直接分享主打白嫖共享#xff0c;不搞花里胡哨的。 链接#xff1a;https://pan.baidu.com/s/1DK474wSrIZ0R6i0EBh5V8A 提取码#xff1a;tado 导入后第…最近在做动态加载读取外部模型的功能使用了triLib插件废话不多说直接干货。 第一步下载导入插件直接分享主打白嫖共享不搞花里胡哨的。 链接https://pan.baidu.com/s/1DK474wSrIZ0R6i0EBh5V8A 提取码tado 导入后第一步新建一个管理渲染管线的文件 第二步建立一个渲染管线的文件放入上一个创建的文件中 配置完成后新建一个文件夹需要把文件和贴图放在同一文件夹内 注意添加后缀名称 然后抄一下demo代码 有兴趣的可以去研究demo 我是为了快速实现就不细讲了 using System.Collections; using System.Collections.Generic; using TriLibCore; using UnityEngine; using System.IO;public class GetLoadFbx : MonoBehaviour {//文件路径要加载的模型的绝对路径不能为空string modelFilename;[Header(模型贴图必须在同级目录会自动读取原始模型的使用贴图)]//文件名称public string name;public SetUV GetSetUV;//这个可以忽略public AssetLoaderOptions options;//这个就是你创建管理渲染的物体void Start(){GetSetUVGetComponentSetUV();modelFilename Application.dataPath /GetModel/Model/SAST5000/;LoadNameModel(name);}void LoadNameModel(string name){modelFilename name;AssetLoader.LoadModelFromFile(modelFilename, OnLoad, OnMaterialsLoad, OnProgress, OnError, null, options); }/// summary/// Called when any error occurs./// /summary/// param nameobjThe contextualized error, containing the original exception and the context passed to the method where the error was thrown./paramprivate void OnError(IContextualizedError obj){Debug.LogError($An error occurred while loading your Model: {obj.GetInnerException()}); //加载模型时发生错误}/// summary/// Called when the Model loading progress changes./// /summary/// param nameassetLoaderContextThe context used to load the Model./param/// param nameprogressThe loading progress./paramprivate void OnProgress(AssetLoaderContext assetLoaderContext, float progress){Debug.Log($Loading Model. Progress: {progress:P});}/// summary/// Called when the Model (including Textures and Materials) has been fully loaded./// /summary/// remarksThe loaded GameObject is available on the assetLoaderContext.RootGameObject field./remarks/// param nameassetLoaderContextThe context used to load the Model./param材料加载。模型完全加载private void OnMaterialsLoad(AssetLoaderContext assetLoaderContext){}/// summary/// Called when the Model Meshes and hierarchy are loaded./// /summary/// remarksThe loaded GameObject is available on the assetLoaderContext.RootGameObject field./remarks/// param nameassetLoaderContextThe context used to load the Model./param模型加载。装材料private void OnLoad(AssetLoaderContext assetLoaderContext){Debug.Log(Model loaded. Loading materials.);}void Update() {}}
http://www.sadfv.cn/news/253842/

相关文章:

  • 中山网站排名微信运营商是哪个公司
  • 常用的网站类型有哪些长沙网站制作费用
  • 网站的链接建设phpstudy wordpress
  • 征集二级网站建设意见 通知云主机可以用来做什么
  • 中国空间站组成部分泉州刚刚发生的重大新闻
  • 优酷视频接到网站怎么做移动云网站建设
  • 常州网站建设公司服务网络架构有哪几层
  • 校园在线网站怎么做有新的wordpress更新是英文版
  • 洛夕网站建设网站建设和管理是教什么
  • 加拿大计划网站怎么做昆明网站快速优化排名
  • 基于python的网站开发项目怎么做网站 教学
  • 福州网站建设思企苏南网站建设
  • 高端手机网站建设需要多少钱百度指数网
  • 子商务网站建设实践南京做网站seo
  • 制作企业网站的app网站的栏目有什么名字
  • 重庆网站建设公司招聘python制作视频网站开发
  • 网站如何建设二级域名代理土特产直营建设网站的调研
  • 网站网站建设企业青岛做网络推广的公司有哪些
  • 做电气的什么招聘网站好网络规划设计师考试内容有哪些
  • 广州做网站的网络公司排名企业网站推广最有效的方法
  • 郑州网站建设服务商制作商品网站
  • 厚瑜珠海网站建设企业信息公示网查询
  • 南孚电池网站建设北京建设工程交易网站官网
  • 网站 可信验证网站技术建设维护技术论文
  • 哪些网站可以做国外生意玉林英文网站建设
  • 郑州网站公司排名网页设计基础项目考核
  • 网站纯色背景图怎么做江苏网站seo
  • 网站信息架构公司邮箱怎么查
  • 郑州网站建设企业推荐wordpress 商城插件
  • 一朋友做网站网站被抓了做红包网站