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

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

961. laya加载unity插件导出的场景 physics3D is not a function [ 53%]

...w GameUI (GameUI.ts:34) at SceneLoader.create (laya.core.js:22061) at EventHandler.__proto.run (laya.core.js:1385) at SceneLoader.__proto.event (laya.core.js:1156) at SceneLoader.__proto._checkNext (laya.core.js:15949) at SceneLoader.__proto.onOneLoadComplete (laya.core.js:16000) at EventHandler.__p...

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

962. runTime使用(JavaScript-IDE篇(JS)-组件化开发相关) [ 53%]

...也不影响后续流程 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION); } onVersionLoaded() { //激活大小图映射,加载小图的时候,如果发现小图在大图合集里面,则优先加载大图合集...

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

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

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

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

964. 如何能够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

965. 关于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

966. 和原生Dom交互 · LayaAir3.4 · 引擎文档 · 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

967. 在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

968. 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

969. 如何解析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

970. 怎么集成导入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