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

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

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

...img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }; img.src = window.URL.createObjectURL(blob); document.body.appendChild(img); } } xhr.send(); ``` 上面这个方法是用了浏览器自身提供的方法来把二进制转换成图片,二进制转换成图...

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

202. 多摄像机窗口的使用(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 51%]

...var camera1 = scene.addChild(new Laya.Camera(0, 0.1, 100)); //设置相机1清除颜色 camera1.clearColor = new Laya.Vector4(0.3, 0.3, 0.3, 1.0); camera1.transform.translate(new Laya.Vector3(0, 0, 1.5)); //设置裁剪空间的视口 camera1.normalizedViewport = new Laya.Viewport(0, 0, 0.5, 1.0); /...

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

203. 多摄像机窗口的使用(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 50%]

...var camera1 = scene.addChild(new Laya.Camera(0, 0.1, 100)); //设置相机1清除颜色 camera1.clearColor = new Laya.Vector4(0.3, 0.3, 0.3, 1.0); camera1.transform.translate(new Laya.Vector3(0, 0, 1.5)); //设置裁剪空间的视口 camera1.normalizedViewport = new Laya.Viewport(0, 0, 0.5, 1.0); /...

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

204. 给Dictionary添加个长度 [ 50%]

...); _lenght != 0 && --_lenght; return true; } return false; } /** * 清除此对象的键名列表和键值列表。 */ public function clear():void { _values.length = 0; _keys.length = 0; _lenght = 0; } } } 2018-06-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

205. 资源加载(ActionScript-3D基础(AS3)-LayaAir3D之资源加载) [ 50%]

...机 var camera:Camera = scene.getChildByName("Main Camera") as Camera; //清除摄像机的标记 camera.clearFlag = BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.color = new Vector3(1, 1, 1); direc...

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

206. 如何完全删除精灵 并回收内存 [ 48%]

...stage.addChild(container) container.destroy() container = null使用destroy清除container后 内存变为7.6 var WebGL = laya.webgl.WebGL; Laya.init(600, 400, WebGL); let container = new Laya.Box() for (let i = 0; i < 10; i++) { for (let i = 0; i < 1000; i++) { let t = new Laya.Text() t.text ...

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

207. 在线文档网球少女--3D角色脚本控制与碰撞检测--这个demo中的攻击按钮是如何固定位置的? [ 48%]

...置,让他每次滑动,只能固定的值。 Laya拖尾怎么停止或清除,比如要瞬移角色的时候停止。伤脑壳~~!! laya2.0 3d物理碰撞穿透问题 [分享]Dialog 点击边缘不关闭的 Demo示例 关於文档丶API丶Demo若有异动 问题状态 最新活动: 2017-11-1...

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

208. 3D角色动作播放时长不正确 [ 47%]

...在播放的背景音乐 laya3D动画无法播放 Laya拖尾怎么停止或清除,比如要瞬移角色的时候停止。伤脑壳~~!! 播放声音出错,求指教 Laya.SoundManager.playSound能同时播放多少个音效 问题状态 最新活动: 2017-05-22 20:21 浏览: 1822 关注: 4 人...

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

209. laya.media.SoundNode [ 47%]

...exture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer。Node transform : Matrix 对象的矩阵信息。通过设置矩阵可以实现节点旋转,缩放...

来源: laya_api 发布时间: 20170422

210. Cannot read property 'rayCast' of undefined [ 47%]

...his.camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); //3.清除照相机颜色 this.camera.clearColor = null; this.directionLight = new Laya.DirectionLight(); this.scene.addChild(this.directionLight); this.directionLight.direction = new Laya.Vector3(0, -0.8, -1); this.directionLigh...

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