大约有 1,155 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0050 秒)
Laya_社区(864) Laya3.0_api(80) Laya2.0_文档(72) Laya_示例(52) Laya2.0_示例(48) Laya3.0_文档(35) laya_api(2) Laya2.0_api(2)
... _owner: any; public set owner(o: laya.display.Sprite) { this._owner = o; console.log("设置owner"); } public get owner(): laya.display.Sprite { return this._owner; } } 新建脚本类如上。运行项目时,构造方法中的log被输...
来源: Laya_社区 发布时间: 20170601
...TATIC_IMG_PATH+'progressBar.png', STATIC_IMG_PATH+'progressBar$bar.png' ]; this.isFirst = true; console.log('Gzdaze='); console.log(Gzdaze); Laya.loader.load(Gzdaze.dialogList, Handler.create(this, this.startLoaded)); 代码是这样的 报错 Access to Image at 'http://caifu-1251177394.file.myqclou...
来源: Laya_社区 发布时间: 20180208
...报错 Laya.loader.load("LayaScene_04_laya/04_laya.ls",Laya.Handler.create(this,this.on3DComplete)); 在load3D资源后分别用两种方法实例化场景报错 //1.实例化场景 that.scene = Laya.loader.getRes("LayaScene_04_laya/04_laya.ls") as Laya.Scene3D; Laya.stage.addChild(that.scene); /...
来源: Laya_社区 发布时间: 20190624
...0*****745 • 2018-06-05 12:06 我用的是Laya.stage.on(Laya.Event.CLICK, this, function (e) {}),请问怎么销毁,销毁以后到下一个页面要重新绑定事件吗? Laya_Aaron • 2018-06-05 14:56 @150*****745:你的代码不给我讲我很难找到你说的这段,stage 是单例,...
来源: Laya_社区 发布时间: 20180605
...腳色 Laya.Scene3D.load( "res/build5/SampleScene.ls", Laya.Handler.create(this, this.onComplete) ); //射线初始化(必须初始化) this._ray = new Laya.Ray( new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0) ); //初始化变量 this.point = new Laya.Vector2(); this._outHitResult = new La...
来源: Laya_社区 发布时间: 20200917
...异常情况 Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); ape.graphics.scale(1.01, 1) Laya.stage.addChild(ape); ape.pos(200, 0); })); 上面这段...
来源: Laya_社区 发布时间: 20170609
...类似这样的方式 Laya.Browser.window.on(Laya.Event.VISIBILITY_CHANGE, this, this.triggerExit); 整个页面一片黑…… 2018-02-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: ...
来源: Laya_社区 发布时间: 20180228
... x:1 ,y:2 ,update:new Laya.Handler(box,function(){ this.transform.position = this.potOld; }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){ console.log("complete"); }),ConstValue.animationDelay); 无法直接设置原因...
来源: Laya_社区 发布时间: 20170630
...; input.size(128, 128); input.align = "center"; input.on(Laya.Event.INPUT, this, this.input, [input]); private input(input:Laya.TextInput, event:Event){ if(input.text.length > 2){ input.width += 20; } } 请问怎么解决这个问题? 附件 : --> 2017-08-20 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20170820
...date 里面放事件,Laya.Event.Click ,但是不知道怎么表达,this. ? .on( Laya.Event.Click, this, function(){...}) 问号那我应该填什么。。。 2018-12-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交...
来源: Laya_社区 发布时间: 20181214