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

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

821. 图集动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 89%]

...pt //初始化舞台 Laya.init(1334, 750,Laya.WebGL); //创建动画实例 this.roleAni = new Laya.Animation(); //加载动画图集,加载成功后执行回调方法 this.roleAni.loadAtlas("res/atlas/role.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //添加到舞台 Laya.stag...

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

822. Image设置skin的Bug [ 89%]

...n = true): void {         super.destroy(true);         this._bitmap && this._bitmap.destroy();         this._bitmap = null;     }   2,当前资源加载完成后,回调设置皮肤资源找不到_bitmap /**      * @private      * 设置皮...

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

823. 区块地图-PerspectiveWall [ 89%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createMap(); Laya.stage.on(Laya.Event.CLICK, this, this.onStageClick); } createMap() { const TiledMap = Laya.TiledMap, Rectangle = Laya.Rectangle; this.tiledMap = new TiledMap(); this.tiledMap.createMap("res/tiledMap/per...

来源: Laya2.0_示例 发布时间: 20251218

824. 子容器的事件问题 [ 89%]

....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); let vhvt: ViewHeadViewTest = new ViewHeadViewTest(); //testUI.addChildAt(vhvt, 0); testUI.add...

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

825. [LayaAirIDE3]如何TextArea屏蔽掉右键的快捷菜单 [ 89%]

...   onAwake(): void {         //禁用/启用鼠标右键         this.disableRightClick();         //this.enableRightClick();         //禁用Ctrl+c,Ctrl+v         this.owner.on("keydown", this, (event: KeyboardEvent) => {             if (event.ctrlKey && event....

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

826. dialog第一次可以正常调出,第二次无法正常popup出来 [ 89%]

...init函数     LoginView.prototype.init = function () {         this.btnReg.on(Laya.Event.CLICK, this, this.onBtnReg);         this.btnLogin.on(Laya.Event.CLICK, this, this.onBtnLogin);         this.dlg = new NormalDialog();         this.dlg.init();     };   附件...

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

827. box2d引擎报错问题 [ 89%]

..._update (laya.core.js:21262)   相关逻辑代码如下: moveSuccess(){ this.owner.removeSelf(); Laya.Pool.recover("flyCat", this.owner) } onTriggerEnter(other: any, self: any, contact: any): void { if (other.label === "cloud") { Laya.Tween.clearAll(this._sp) let effect: Laya.Animation = Laya.Poo...

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

828. laya3D导入动画材质在安卓手机和电脑上显示正常,在苹果手机显示异常 [ 89%]

...w(); Laya.stage.frameRate = Laya.Stage.FRAME_FAST; //预加载所有资源 this.resource = [ "res/maze/img/demo/toolClock/Conventional/glow.lh", "res/maze/img/demo/Conventional/wang06.lh", "res/maze/img/demo/toolClock/Conventional/puzzleA.lh", "res/maze/img/demo/to...

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

829. 官方文档里的位图字体的制作与使用JS 跑不通 以及 文档的几个问题 [ 89%]

...个位图字体教程的代码应该放在哪里,怎么引用,其中的this是指? 我自建了单独的文件,并在Main里import了它,输出看是undefined。   5.几处的路径不一致,它们的关系是?  a.如图:把test_0.png名字改为test.png,保证跟fnt文件同名。...

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

830. 关于removeChildren、 destroy和destroyChildren的疑惑 [ 89%]

...ar SightBead = (function () { function sightBeadSprite() { SightBead.super(this); this.name = 'sightBead'; this.graphics.drawCircle(0,0,40,null,'#ff0000',1); this.graphics.drawLine(-45,0,45,0,'#ff0000',1); this.graphics.drawLine(0,45,0,-45,'#ff0000',1); this.alpha = 0; Laya.stage.addChild(this); // ...

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