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

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

751. CheckBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 41%]

...onLoaded回调方法 Laya.loader.load([this.skin1,this.skin2],Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个CheckBox实例cb1 var cb1:Laya.CheckBox = new Laya.CheckBox(this.skin1); //添加到舞台上显示 Laya.stage.addChild(cb1); //设置checkbox的坐标位...

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

752. ViewStack属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 41%]

...行onLoaded回调方法 Laya.loader.load("./res/atlas/ui.atlas", Handler.create(this, onLoaded)); } private function onLoaded():void { //创建一个UI实例 comp = new ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(comp); //点击Tab选择按钮的处理 comp.tab.selectHandler=ne...

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

753. 示例打地鼠发布打包后提示TypeError: this.preinitialize is not a function [ 41%]

...;>>>conchjar android-2.0.8 E/LayaConch5: plugin-----------------onCreate() D/dalvikvm: JIT code cache reset in 0 ms (0 bytes 1/0) D/dalvikvm: GC_FOR_ALLOC freed 259K, 10% free 3081K/3408K, paused 2ms, total 2ms D/dalvikvm: GC_FOR_ALLOC freed 292K, 10% free 3303K/3656K, paused 2ms, total 3ms...

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

754. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 41%]

..."res/atlas/comp.atlas", type:Loader.ATLAS}); Laya.loader.load(res, Handler.create(null, this.__onLoaded)); } private __onLoaded(): void { Laya.stage.addChild(new Test()); } } new Entry();   Test.ts import Sprite = Laya.Sprite; class Test extends Sprite{ constructor(){ super(); this._initView(); } p...

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

755. StaticModel_MeshSample例子运行不起来 [ 41%]

...例子里,UI组件的事件都用new Handler,而资源加载用Handler.create() 问题状态 最新活动: 2016-12-01 16:55 浏览: 2147 关注: 2 人

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

756. CheckBox属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 40%]

...功后,执行onLoad回调方法 Laya.loader.load([skin1,skin2], Handler.create(this, onLoaded)); } private function onLoaded():void { //创建一个CheckBox实例cb1 var cb1:CheckBox = new CheckBox(skin1); //添加到舞台上显示 Laya.stage.addChild(cb1); //设置checkbox的坐标位置 cb1.pos...

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

757. UI加载完成后无法获取控件的大小——超详细版问题 [ 40%]

....loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); console.log("myref-onloaded", testUI.myref.getBounds()); console.log("mypan-onloaded",...

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

758. 3d显示对象克隆体超出舞台不再显示的bug2.1.0.btea1 [ 40%]

...(1, -1, 0)); Laya.Sprite3D.load("h5/LayaMonkey/LayaMonkey.lh",Laya.Handler.create(this,this.ok)); } ok(sp:Laya.Sprite3D):void{ //得到原始Sprite3D this.sp = sp; this.scene3d.addChild(sp); //克隆Sprite3D this.sp2 = Laya.Sprite3D.instantiate(this.sp,null,false); //错开点位置 this.sp2.transfo...

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

759. Laya.Pool用法 [ 39%]

...o     /**      * 协议对象池      * Author :Terry        * Created: 2017-08-07 09:44:25      */     export class ProtoPool {         private static _dic: Laya.Dictionary;         public static PROTO_HEAD: string = "proto_Head";         public static PROTO_BINARY_REQU...

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

760. 关于laya无法缓存非图片、声音文件bug [ 39%]

...读取是不走readfile的,第一次缓存之后后面使用都是直接create音频.src去加载 1571361226用户 • 2020-07-11 16:07 @陆仁毅: 陆哥 那播放不了是啥原因 1571361226用户 • 2020-07-11 16:08 @1571361226用户: 感谢陆哥了 1571361226用户 • 2020-07-11 17:33 不...

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