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

大约有 2,746 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0069 秒)

2051. 骨骼约束 · LayaAir3.4 · 引擎文档 · LAYABOX [ 52%]

...了约束的参考坐标系,影响约束的方向和行为。当space为 null 时,约束空间与父骨骼对齐,但保留当前骨骼的位置偏移。 约束骨骼:是否约束骨骼方向。 X轴: X 轴旋转角度范围。 Y轴: Y 轴旋转角度范围。 Z轴: Z 轴旋转角度范...

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

2052. 要实现角色模型被建筑模型遮挡后,建筑模型变成半透明,如何实现? [ 52%]

...s.camera.clearColor = new Vector4(0, 0, 0, 0); (3)Laya.stage.bgColor = null; 第一句,是让Canvas的WebGL上下文支持透明。 第二句,是在draw渲染时清除的颜色和透明。 第三句,是把Canvas的style背景色清除。 ---------------------  作者:sjt223857130  来...

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

2053. 2d粒子旋转时大小也会随着改变 [ 52%]

...icles/Tail.part", Laya.Handler.create(this, this.OnPariticleAssetsLoaded), null, Laya.Loader.JSON); OnPariticleAssetsLoaded(setting:Laya.ParticleSetting) { let sp = new Laya.Particle2D(setting); sp.pos(200, 200); sp.emitter.start(); sp.play(); Laya.stage.addChild(sp); sp.rotation = 80; }附件中为...

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

2054. 如何解析json文件并获取某对象值? [ 52%]

...oader.load("res/atlas/resTest0.json", Handler.create(this, this.onLoaded), null, Loader.JSON); } private onLoaded() { var json : JSON = Laya.Loader.getRes("res/atlas/resTest0.json"); var jsTx = JSON.stringify(json); } 已经通过上面代码获取整个json内容,可我该如何获取我的json...

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

2055. 动画的倒序模式你们不能实现,也就是wrapMode设1以后动画没有倒着走,往解决,已从创建项目开始录屏压缩 [ 52%]

...用view嵌套发布html5报"Uncaught TypeError:Cannot set property 'y' of null"的解决方案 问题状态 最新活动: 2020-11-02 10:37 浏览: 210 关注: 1 人

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

2056. 分享 修复webaudiosound 循环播放的声音 俩个失声问题 [ 52%]

...earBufferSource(); if (!this.audioBuffer) { // console.log("audioBuffer is null",this.url) return; } if (this.startTime >= this.duration) { if (this.loops == 1) { return this.stop(); } this.startTime = 0; }  2.修复 当播放未加载好的声音时 声音状态为暂停时 声音不播放的...

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

2057. 怎么在api中找到 Laya.loader.load [ 52%]

...a.loader.load("res/atlas/war.json",Laya.Handler.create(this,this.onloaded),null,Laya.Loader.ATLAS); 这一句,我想找一下Laya.loader.load的使用说明和使用例子,但是不知道怎么找。在api里我开了Laya。 http://layaair.ldc.layabox.com/api/index.html?category=Core&class=L...

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

2058. 我想用代码来绘制一个3D球如何弄呢?看我写的 [ 52%]

...form.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; camera.addComponent(CameraMoveScript); //球体 var sphere = new Laya.SphereMesh(10,10,10); var sphereMesh = new Laya.MeshSprite3D(sphere); sphereMesh.transform.localScale = new Laya.Vector3(100, 100, 100); scene.addChi...

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

2059. Uncaught TypeError: Cannot read property 'XXX' of undefined [ 52%]

...ind scene:GameView.scene undefined Cannot read property 'displayObject' of null unity5.6.3p4+工具2.0.1导出场景报错XXX can't Readable... Laya2.1.0 JS调用Java PlatformClass undefined Uncaught TypeError: Cannot read property 'props' of undefined 鼠标自定义样式官方有支持吗,Laya....

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

2060. 解析JSON格式的数据 [ 52%]

...; var strJson=Laya.loader.load(fileURL,Handler.create(this,readJsonFinish),null,Loader.JSON); function readJsonFinish() { console.log(strJson); var contact = JSON.parse(strJson); } } cuixueying • 2016-07-26 11:13 Laya.loader.load是预加载JSON字符串,并非是获取JSON Laya.loader.getRes是...

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