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

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

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

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

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

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

994. 动画-旧版骨骼动画 [ 50%]

...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_示例 发布时间: 20260106

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

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

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

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

997. timer无法执行 [ 50%]

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

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

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

999. 图片mask失效问题. [ 50%]

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

1000. 图集制作与使用详解(JavaScript-IDE篇(JS)-使用IDE创作) [ 50%]

...atlas方式图集使用示例 Laya.loader.load("./res/test/c1.atlas", Laya.Handler.create(this, onLoaded)); ```   `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应用广泛,不仅仅用于图集,所以为了识别是否为图集配置信息,在加载`.json`文...

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