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

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

961. Laya 绑定显示内容到骨骼动画 [ 51%]

...    this.__bind.load(GamePath.single.getSpinePath("tank_blue.sk"),Laya.Handler.create(this,this.testLoadComplete));   }      private __bind:BindSkeleton;     private testLoadComplete():void{          let source:BindSource=new BindSource("gongji");         source.gr...

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

962. 动画-旧版骨骼动画 [ 51%]

...UI(): void { Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(this, function (): void { this.changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png", "切换动作")) as Laya.Button; this.changeActionButton.size(160, 40); this.changeA...

来源: Laya_示例 发布时间: 20251219

963. Panel使用文档(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 51%]

...00); //预加载所需资源 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { //实例化Panel组件 var panel: Laya.Panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设...

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

964. 使用Tween.to完成回调异常! [ 51%]

...o完成回调异常! Tween.to(this.floatTxt, {y:-30}, 600, Ease.expoOut, Handler.create(this,onFloatComplete)); protected function onFloatComplete(callBack:Function):void {  this.removeSelf(); } 我用这个缓动来做飘字效果,完成回调的时候,把飘字对象在场景上移除,结...

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

965. timer无法执行 [ 51%]

... Laya.BlinnPhongMaterial();   Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(layabox: Laya.Texture2D): void{ ball1mat.albedoTexture = layabox; })); //ball1mat.tilingOffset = new Laya.Vector4(10, 10, 0, 0); ball1.meshRenderer.material = ball1mat; //添加刚体 ball1.addCo...

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

966. 我用as3调试的matter.js,刚体发生碰撞后不会旋转,我的代码在附件里 [ 51%]

...renders.Render;     import laya.utils.Browser;     import laya.utils.Handler;     import laya.utils.Stat;     import laya.webgl.WebGL;     import wawaji.Wawaji;     /**      * ...      * @author zzz      */     public class WWJ_Main      {         private cons...

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

967. [LayaNative3]游戏致命bug,WEB 性能是 native 性能 35倍 ,请求紧急修复 [ 51%]

...    Laya.loader.load(             loadList,             Laya.Handler.create(this, () => {                 var label=this.owner.getChildByName("time") as Laya.Label;                 label.text=((Date.now() - nt) / 1000 + "秒");             })         );  ...

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

968. 打包APK运行,drag拖动出现问题;color="#0"程序直接崩溃 [ 51%]

...;             Laya.loader.load([GameConfig.getAssetsFile("comp")],Handler.create(this, onComplet));                          }         private var imag:Image;         private function onComplet():void         {             imag=new Image("ui/comp...

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

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

...,执行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.com...

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

970. 图片mask失效问题. [ 51%]

...kimg.loadImage("http://img.diyphoto.cn/Mask/im ... ot%3B,0,0,500,500, Handler.create(this,function():void{ photoimg.removeChild(maskimg); })); }); 必须这么写才行 先添加 在移除 ljy328803417 • 2018-02-26 17:40 我也出现了上面的问题,结果发现是显示对象没高宽问...

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