• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 4,102 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0074 秒)

1651. list显示函数调用不出来 [ 78%]

...用不出来 list的renderHandler函数调用不成功是什么原因? this.listShow.renderHandler = new Laya.Handler(this, this.onRender);   附件 : --> 2018-04-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...

来源: Laya_社区 发布时间: 20180419

1652. 3D模型加载出错 [ 78%]

3D模型加载出错   //添加自定义模型         //this.box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1)));         Laya.Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh",Laya.Handler.create(null, function(sp){         //La...

来源: Laya_社区 发布时间: 20190514

1653. "img.viewport is not a function" [ 78%]

...序报错window.focus is not a function 调用动画结束on方法,报错this.zombieAnimator.on is not a function laya加载unity插件导出的场景 physics3D is not a function 用微信开发者调试的时候出现document.createTextNode is not a function api readFile success callback function...

来源: Laya_社区 发布时间: 20170428

1654. PBRStandardMaterial材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 78%]

...rel/Materials/Textures/Barrel_AlbedoTransparency.png', Laya.Handler.create(this, function(texture) { mat.albedoTexture = texture; })); //法线贴图 Laya.Texture2D.load('res/threeDimen/scene/PBRMaterialScene/Assets/PBR Barrel/Materials/Textures/Barrel_Normal.png', Laya.Handler.create(this, function...

来源: Laya2.0_文档 发布时间: 20210714

1655. 二进制图片(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 78%]

...", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }; img.src = window...

来源: Laya2.0_文档 发布时间: 20210715

1656. 骨骼动画进阶(JavaScript-2D进阶篇(JS)-动画进阶) [ 78%]

...建动画模板 templet=new Laya.Templet(); templet.on(Laya.Event.COMPLETE,this,parseComplete); templet.on(Laya.Event.ERROR,this,onError); //加载动画文件 templet.loadAni("res/spine/goblins/goblins.sk"); function onError() { console.log("parse error"); } function parseComplete() { //创建第...

来源: Laya2.0_文档 发布时间: 20210715

1657. 射线形状检测shapeCastAll返回的检测结果只第一次有效 [ 78%]

...ration = 0.0) { var bt = ILaya3D.Physics3D._bullet; var convexResultCall = this._btAllConvexResultCallback; var convexPosFrom = PhysicsSimulation._btTempVector30; var convexPosTo = PhysicsSimulation._btTempVector31; var convexRotFrom = PhysicsSimulation._btTempQuaternion0; var convexRotTo = PhysicsS...

来源: Laya_社区 发布时间: 20201017

1658. list点击label保留一种状态 [ 78%]

list点击label保留一种状态 var record_slide_list = this.record_slide_list; data = []; for(var i = 0;i < 10;i++){ data.push({ bgColor:{color:'#f3d9b4'}, type:false }) } record_slide_list.array = data; record_slide_list.selectEnable=true; record_slide_list.selectHandler = new Handler(this, ...

来源: Laya_社区 发布时间: 20170803

1659. 文本align="center", 对齐方式无效,无论设置什么值,都是左对齐 [ 78%]

...左对齐 var txtCountDown = new Laya.Text(); txtCountDown.fontSize = 30; this.rankSprite2.txtCountDown = txtCountDown; this.rankSprite2.addChild(txtCountDown); txtCountDown.text = 15; txtCountDown.pivotX = txtCountDown.width/2; txtCountDown.align = "right"; txtCountDown.pos(this.rankSprite2.width /...

来源: Laya_社区 发布时间: 20180514

1660. CommandBuffer · LayaAir3.3 · 引擎文档 · LAYABOX [ 78%]

...,//所有渲染之后 添加CommandBuffer到相机事件的接口如下: this.camera.addCommandBuffer(this.cameraEventFlag,this.commandBuffer); 删除CommandBuffer的接口如下: this.camera.removeCommandBuffer(this.cameraEventFlag,this.commandBuffer); CommandBuffer是一个渲染指令集,...

来源: Laya3.0_文档 发布时间: 20251010