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

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

2011. 加载预制体json,返回值不统一 [ 68%]

...方式: Laya.loader.load("prefab/hero.json", Laya.Handler.create(this, function (obj) {             console.log('hero',obj);         }), null, Laya.Loader.PREFAB);         Laya.loader.create("prefab/WeiTiao.json", Laya.Handler.create(this, function (obj) {  ...

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

2012. 关于Timer延迟调用有一些不解 [ 68%]

关于Timer延迟调用有一些不解 private function skill():void {    Laya.timer.once(1500,this,finish);     //Laya.timer.once(3000,this,finish);  } private function skill():void {    this.visible=false; } 假定这是一个简陋的人物隐身技能,蓄力1.5s后人物消失。   ...

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

2013. laya.d3.core.material.unlit.UnlitTestMaterial_API3.0 [ 68%]

...建 Parameters url: string Returns boolean off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删...

来源: Laya3.0_api 发布时间: 20231102

2014. Animation的createFrames为何加载不了有的图集资源 [ 68%]

...ya.utils.Handler; import view.TestView; public class LayaUISample { public function LayaUISample() { //初始化引擎 Laya.init(600, 400); //Laya.loader.load([{url: "res/atlas/char_wudang01.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); this.onLoaded(); } private function onLoaded():...

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

2015. 一个list钟我添加了renderHandler回调但是里面的初始化回调执行了两次!!! [ 68%]

....Handler; seltInf._list0.renderHandler = new Handler(this, onListRender1); function onListRender1(item,index) { var btn=item.getChildByName('btn_true'); trace(btn); btn.on(Laya.Event.CLICK,this,function(){ trace("dadasdads"); }); } cuixueying • 2017-08-04 11:36 把可以运行的例子...

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

2016. TypeError: Cannot read property 'GetType' of null [ 68%]

...打出的APK 报apploader.js:4515 TypeError: addGlobalValueDefine is not a function 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function Cannot read prope...

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

2017. Laya2.0 刚体获取body时,场景中所有刚体紊乱 [ 68%]

...体位移物理对象,保持物理世界不变*/         public function get worldRoot():Sprite {             return _worldRoot || Laya.stage;         }                  public function set worldRoot(value:Sprite):void {             _worldRoo...

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

2018. workerLoader问题 [ 68%]

...this.worker = new Worker(WorkerLoader.workerPath); this.worker.onmessage = function(evt:any):void { //接收worker传过来的数据函数 (this as any as WorkerLoader).workerMessage(evt.data); } } 回调函数this指向有问题 附件 : --> 2019-08-02 添加评论 免费帖 --> 分享 微博 QZONE...

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

2019. layanative安卓端需要怎么添加ttf字体,需要增加两种字体? [ 68%]

...andler; /** * ... * @author ww */ public class TestTTFLoader  {   public function TestTTFLoader()  { Laya.init(1000, 900);   Laya.loader.load("res/remember.ttf",new Handler(this,test)); }   private function test():void { var text:Text; text = new Text(); text.fontSize = 30; text.color = "#ff000...

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

2020. List数据源的格式问题导致无法响应List的SelectHandler [ 68%]

...}3、Data的相关代码public class Data extends EventDispatcher { public function Data() { } protected function dataSourceChange(eventType:String, property:String, value:Object):void { var data:* = this[property]; this[property] = value; if (value != data) { var result:Boolean = event(eventType , ...

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