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

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

961. 一个panel有多种渲染选项,如何将这个数据分发给各个渲染选项类? [ 53%]

...ist下的渲染项必须是宽高和内容一致的,你可以通过renderHandler,来修改你渲染项的不同显示,譬如同一个image组件,不同的skin,同一个text,不同的文本内容等! 2017-03-30 1 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要...

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

962. 如何能够clone一个node(包括node所有的子节点, 以及所有节点上的compnent,属性) [ 53%]

...a.loader.load([{url:"prefab/ButtonA.json", type:Laya.Loader.PREFAB}], Laya.Handler.create(this, ()=>{ let prefab = Laya.loader.getRes("prefab/ButtonA.json") as Laya.Prefab; let o:Laya.Button = prefab.create(); o.zOrder = 10000; Laya.stage.addChild(o); })); 但是如果要把状态也clone出来...

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

963. 关于mouseThough=true的问题 [ 53%]

...rl:[ "fish_6.png" ],type:Loader.IMAGE}); Laya.loader.load(assets,Handler.create(this,onLoaded)); } private function onLoaded():void{ var img:Image = new Image("fish_6.png"); img.on(Event.CLICK,this,onClick); img.mouseThrough = true; Laya.stage.addChild(img); } 代码就这么简...

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

964. 和原生Dom交互 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

...x.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,this.clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); 编译运行上面的代码,然后点击舞台可以看到,二维码已经显示到了舞台上,可以用手机扫下,发现手机已经...

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

965. 在Unity中设置动画事件(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 53%]

...threeDimen/scene/LayaScene_AnimationEvent/Conventional/layaScene.ls", Laya.Handler.create(this, function(scene) { Laya.stage.addChild(scene); //获取cube对象 var cube = scene.getChildByName("Cube") as Laya.Sprite3D; //添加组件(脚本) var _script = cube.addComponent(SceneScript) as SceneScrip...

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

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

...会随着改变 代码: Laya.loader.load("res/Particles/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...

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

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

...值? private jsonParse() { Laya.loader.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内容...

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

968. 怎么集成导入mqtt.js到laya中 [ 53%]

....client = new Paho.MQTT.Client(url, Number(port), client); // set callback handlers //连接消失 收到消息 this.client.onConnectionLost = this.onConnectionLost; this.client.onMessageArrived = this.onMessageArrived; // connect the client this.client.connect({ onSuccess: this.onConnect.bind(this)...

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

969. 加载SK文件时,报错如下:Uncaught getUint16 error - Out of bounds [ 53%]

...ader.load(['res/spine/knight/effect1.png', 'res/spine/knight/effect1.sk'], Handler.create(this, init)); 2018-03-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: 骨骼数太大了吧 2018-03-23...

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

970. 保存数据的数组在回调的时候变为undifine [ 53%]

...能console出,那个list中的数据也存在,但没渲染出。 Laya.Handler.create 回调 load方法的progress回调进的次数太少了。是我哪里设置有问题么 Tween的to方法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa...

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