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

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

51. 动效模板(TypeScript-LayaAir基础篇(TS)-动画基础) [ 45%]

...; //加载图集资源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //实例化导出的UI类 var efc:ui.EffectAnimationDemoUI = new ui.EffectAnimationDemoUI(); //添加到舞台 Laya.stage...

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

52. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...内容并返回。如果不需要支持热重载,则忽略。 @Laya.regLoader(["abc"], null, true) export class DemoAssetLoader implements Laya.IResourceLoader { async load(task: Laya.ILoadTask): Promise<any> { let json = await task.loader.fetch(task.url, "json"); let res = task.obsoluteInst...

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

53. 时间轴动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 42%]

... ```javascript //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas", Laya.Handler.create(this, onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```javascript //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 ...

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

54. 时间轴动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 42%]

... ```typescript //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```typescript //创建一个Animation实例 var tl:Laya.Animation = new Laya.Animation(); //...

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

55. 时间轴动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 41%]

...图集。 ```java //加载图集成功后,执行onLoad回调方法 Laya.loader.load("res/atlas/ui.atlas", Handler.create(this, onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```java //创建一个Animation实例 var tl:Animation = new Animation(); //加载动画文件 tl.lo...

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

56. Unity插件使用说明(TypeScript-3D基础(TS)-LayaAir3D之3D场景可视化编辑) [ 38%]

...断游戏本身的体验。 在加载2D资源的时候,通常使用`Laya.loader.load()`方法预加载,而预加载3D资源必须要用`Laya.loader.create()`方法。在加载完成后,可以直接使用`Laya.loader.getRes()`这个方法来获取加载完成的资源。 批量预加载的示...

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

57. 绘制能力 · LayaAir3.3 · 引擎文档 · LAYABOX [ 37%]

..., offset || Point.EMPTY, color)); else return null; } 代码示例: Laya.loader.load("resources/layaAir.png").then((res: Laya.Texture) => { let sp = new Laya.Sprite(); // 绘制填充纹理 sp.graphics.fillTexture(res, 0, 0, 500, 500, "repeat"); this.owner.addChild(sp); }); 运行效果: (...

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

58. laya.ui.Button_API3.0 [ 35%]

...。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成!"); var button:Button = new Button("resource/ui/button.png","la...

来源: Laya3.0_api 发布时间: 20231115

59. laya.ui.CheckBox_API3.0 [ 34%]

...。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/check.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成!"); var checkBox:CheckBox = new CheckBox("resource/ui/check.png"...

来源: Laya3.0_api 发布时间: 20231115

60. LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) [ 28%]

...tion.Laya3D._getSprite3DHierarchyInnerUrls (libs/laya.d3.js:1837)     at Loader.Laya3D._onHierarchylhLoaded (libs/laya.d3.js:1933)     at EventHandler.__proto.runWith (libs/laya.core.js:1628)     at Loader.__proto.event (libs/laya.core.js:1384)     at Loader.__proto.complete (libs/laya.core....

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