大约有 4,103 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0064 秒)
Laya_社区(3324) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...; webglRaycaster.SetMeshCastLayer(node); node.on(Event.CLICK,this, onNodeClickedHandler); 4,方法: private function onNodeClickedHandler(source:Sprite3D):void { if (!source) return; trace(source.name); } 附件 : --> WebglRaycaster.zip 2017-05-16 添加...
来源: Laya_社区 发布时间: 20170516
...a5416 • 2017-08-25 09:47 AudioSound类的play方法 177行 channel.url = this.url; 提示这个url报错 yonghua5416 • 2017-08-25 09:49 应该是切换,播放背景音乐时报错的 yonghua5416 • 2017-08-25 10:20 确定是切换背景音乐的导致的报错
来源: Laya_社区 发布时间: 20170824
... 50, "#000"); btn.pos(100, 200); btn.size(50,50); btn.on(Event.MOUSE_DOWN, this, function():void {console.log(1);}); btn.on换成Laya.stage.on是可以触发的,但是btn却触发不了。 麻烦解答,谢谢。 2017-05-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20170525
...AirDemo() { Laya.init(800,800); Laya.loader.load('logo.png',Handler.create(this,onLoaded)); } private function onLoaded():void { var texture:Texture=Loader.getRes('logo.png'); var sp:Sprite=new Sprite(); sp.graphics.clear();//把上次的绘制清除 sp.graphics.drawTexture(texture); Laya.stage.addC...
来源: Laya_社区 发布时间: 20170505
..., 0], ]; var grid = PF.core.Grid(matrix); 然后就报错了 TypeError: this._buildNodes is not a function at Object.Grid (file:///D:/Layabox/PathFinding/bin/libs/laya.pathfinding.js:41:19) at LayaAir3D.pathFindingTest (file:///D:/Layabox/PathFinding/bin/js/LayaAir3D.js:39:33) at new LayaAir3D (f...
来源: Laya_社区 发布时间: 20180404
...例啊?如果是UI类,可以通过设置var变量,在UI类中直接this.动效模板名字使用,但是脚本组件中怎么办呢?脚本组件中,即使设置了var变量,也是无法获取到这个动效模板对象的啊?求解? 2021-01-25 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20210125
...on Laya.loader.load([{url: "res/Image.json", type: "plf"}], Handler.create(this, function():void { //在回调里,正常使用原来的图集 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("comp/comp.png"); var sp:Sprite = new S...
来源: Laya2.0_文档 发布时间: 20210714
...赞同来自: Laya.loader.load("res/sounds/light.mp3", Laya.Handler.create(this, ()=>{ console.log("load light.mp3"); Laya.SoundManager.playMusic("res/sounds/light.mp3"); Laya.SoundManager.playSound("res/sound...
来源: Laya_社区 发布时间: 20180814
...时使其在舞台居中? sp.loadImage(_img, 0, 0, 0, 0, Handler.create(this, function(){ trace("complete!!"); 因为我之前1.0可以使用以上方法,但切换到2.0发现complete不触发,这让我如何是好? 2018-10-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20181009
...3 不行啊, 拿不到数据啊 Laya.loader.load(fileURL, Handler.create(this, null), null, Laya.Loader.JSON); let strJson: JSON = Laya.loader.getRes(fileURL); strJson: undefined
来源: Laya_社区 发布时间: 20180131