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

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

891. Laya.loader.clearTextureRes引起的内存泄露以及恢复图片显示闪烁 [ 42%]

...    Laya.loader.load(this.skPath.replace(".atlas",".png"),Laya.Handler.create(this,function(bit){                 var arr = Laya.Loader.getAtlas(this.skPath);                 arr.forEach(resUrl=>{                     var tex = Laya.Loader.getRes...

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

892. Button属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 42%]

...源成功后,执行onLoaded回调方法 Laya.loader.load(skin, Handler.create(this, onLoaded)); } private function onLoaded():void { //创建一个Button实例 var btn:Button = new Button(skin); //将Button添加到舞台 Laya.stage.addChild(btn); //设置Button相关的属性 btn.width = 100; btn...

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

893. 模型与动画的导入使用 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...oader.load("girl/girl.lh").then(res => { let girl : Laya.Sprite3D = res.create(); this.scene3D.addChild(girl); //获得Animator this._animator = girl.getComponent<Laya.Animator>(Laya.Animator); }); this.on( Laya.Event.MOUSE_DOWN, this, this.switchAni ); } switchAni(): void { if (this._isRun...

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

894. 请大家帮助优化一下这个抛物线的代码 [ 42%]

...100, 619, Laya.WebGL); Laya.loader.load("res/atlas/war.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLAS); } private onLoaded():void{ this.ball = new Ball(); Laya.stage.addChild(this.ball); this.ball.x = Laya.stage.width / 2; this.ball.y = Laya.stage.height / 2; Laya.stage.on(Lay...

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

895. iOS9兼容bug,求指教 [ 42%]

...-06-13 11:20:12.225 RBaoSANGuo_H5L1[1552:289925] iOS OpenGL ES 3.0 context created 2019-06-13 11:20:12.519 RBaoSANGuo_H5L1[1552:289925] 激活码a5f32aff-18ba-481e-aec7-ae791407385f 2019-06-13 11:20:12.534 RBaoSANGuo_H5L1[1552:289925] 请求链接:https://info.x5cv.com/apigateway/v1/ 2019-06-13 11...

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

896. ViewStack属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 41%]

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

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

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

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

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

898. CheckBox属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 41%]

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

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

899. 示例打地鼠发布打包后提示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

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