大约有 2,033 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0060 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
...e("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, this.onComplete)); } //完成回调 onComplete() { //获取资源 var layaMonkey = this.scene.addChild(Laya.Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); //克隆sprite3d var layaMonkey_clone1 = L...
来源: Laya2.0_文档 发布时间: 20210715
...olor = "#fff"; Laya.loader.load("assets/images/color1.png", Handler.create(this, __loadImageHandler)); } private function __loadImageHandler():void { _colorSpr = new Sprite(); _colorTex = Laya.loader.getRes("assets/images/color1.png"); _colorSpr.graphics.drawTexture(_colorTex); _colorSpr.cacheAs = "...
来源: Laya_社区 发布时间: 20180302
...载出来了Laya.loader.create("LayaScene_01/loveScene.ls",Handler.create(this,this.completeHandler)); private function completeHandler():void{ var scene:Scene = Laya.loader.getRes("LayaScene_01/loveScene.ls"); Laya.stage.addChild(scene); } 我现在的问题是,我创建一个继...
来源: Laya_社区 发布时间: 20170825
官方视频教程中飞机大战 "this.addChild is not a function" IDE Layabox1.7.20.2 beta 版 src/Game.js//var WebGL = laya.webgl.WebGL; //Laya.init(480, 852, WebGL); var Game = (function(){ (function Game(){ Laya.init(480,852); this.bg = BackGround(); Laya.stage.addChild(this.bg); })(); })(); s...
来源: Laya_社区 发布时间: 20181003
...yaMonkey/LayaMonkey.lh"]; Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete)); } onComplete(){ //记载场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //加载相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector...
来源: Laya2.0_文档 发布时间: 20210715
..., {blur: 1}, 200, null, 0); } t.on(Event.COMPLETE, this, function(){ sp.filters = null; }); t.play(0, true); }; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebG...
来源: Laya_社区 发布时间: 20181012
...件函数,名字是可以对应上的 ShowMsg(){ console.log("ShowMsg"); this.showMsgFunc && this.showMsgFunc(); } } ``` 在加载好场景之后,我们将我们创建的这个脚本添加给cube。 ```typescript //加载场景 Laya.Scene3D.load("res/threeDimen/scene/LayaScene_AnimationEvent/Con...
来源: Laya2.0_文档 发布时间: 20210715
... __proto.getTileProperties=function(index,id,name){ if (this._tileProperties[index] && this._tileProperties[index][id]){ return this._tileProperties[index][id][name]; } return null; } import { ui } from ...
来源: Laya_社区 发布时间: 20190218
...决方法 主文件:a.js 组件文件:Role.js a.js文件代码: this.Role = new Role(); this.RoleMap = new Laya.Sprite(); this.RoleMap.size(Laya.stage.width, Laya.stage.height/2); Laya.stage.addChild(this.RoleMap); this.RoleMap.addChild(this.Role); this.Role.pivot(16,24);// 图片32x48 th...
来源: Laya_社区 发布时间: 20181012
...UI界面,定义一个image的var为testBut,在class中继承ui,使用this.testBut调用该var时,报错为:undefined,检查layaMaxUI中有该var属性,使用this.testBut时IDE也未报错,请问如何解决 2018-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20181012