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

大约有 237 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0051 秒)

191. 内置骨骼动画 · LayaAir3.0文档 · LAYABOX [ 53%]

...Start() { console.log("Game start"); //加载内置骨骼动画资源 Laya.loader.load("skeleton/Dragon/Dragon.sk").then((templet: Laya.Templet) => { //创建模式为1,可以启用换装 this.mArmature = templet.buildArmature(0); this.mArmature.x = 300; this.mArmature.y = 350; this.mArmature.s...

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

192. 动效模板(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 53%]

...认应用程序。编写代码如下: ```java package { import laya.net.Loader; import laya.utils.Handler; import ui.EffectAnimationDemoUI; public class Main { public function Main() { //初始化舞台 Laya.init(1334,750); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" //加载图集资...

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

193. 插件开发说明 · LayaAir3.0文档 · LAYABOX [ 52%]

...内容并返回。如果不需要支持热重载,则忽略。 @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_文档 发布时间: 20240918

194. 进度条组件 · LayaAir3.0文档 · LAYABOX [ 51%]

...加载进度条资源,图片资源来自“引擎API使用示例” Laya.loader.load(["resources/res/ui/progressBar.png", "resources/res/ui/progressBar$bar.png"]).then(() => { // 创建进度条 this.progressBar = new Laya.ProgressBar("resources/res/ui/progressBar.png"); this.progressBar.pos(10...

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

195. 垂直布局容器组件 · LayaAir3.0文档 · LAYABOX [ 51%]

...组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skins).then(() => { this.createBtn(); this.createvbox(); // 添加VBox组件 this.owner.addChild(this.vbox); }); } // 创建Button组件 private createBtn(): void { this.btn1 = new Laya.Button(this.skins);...

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

196. 水平布局容器组件 · LayaAir3.0文档 · LAYABOX [ 50%]

...组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skins).then(() => { this.createBtn(); this.createHbox(); // 添加HBox组件 this.owner.addChild(this.hbox); }); } // 创建Button组件 private createBtn(): void { this.btn1 = new Laya.Button(this.skins);...

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

197. Laya.MiniAdpter.downLoadFile缓存的文件无法读取的问题 [ 50%]

...e { this.DoLoadData(url); } } protected DoLoadData(url:string):void { Laya.loader.load(url, Laya.Handler.create(this, this.OnLoadDataCb)); } protected OnDownloadFileInWxOk(args:any, result:any, data:any):void { console.log("OnDownloadFileInWxOk"); console.log("" + result + ", data: " + data); if (re...

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

198. 为什么说没有​ playByFrame方法 [ 49%]

...还有 我只加载动画使用的资源好想不可以?还有使用Laya.Loader的方式能不能加载ani文件? 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 有没有Unity3d的Vector3.Angle(计算两个三维向量之间的角度)...

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

199. 字体切片组件 · LayaAir3.0文档 · LAYABOX [ 49%]

...组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load([this.TestClipNum, this.TestFontClip, this._ClipNum, this._FontClip, this._ClipNum1]).then( ()=>{ this.ShowContent(); } ); } private ShowContent(): void { var clipnum: Laya.FontClip = new Laya.FontClip(this._Cl...

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

200. videoNode在安卓上不能播放 [ 48%]

...   Laya.stage.on(Laya.Event.MOUSE_DOWN, () => {             Laya.loader.load("resources/916.mp4").then(() => {                 this.play();             });         })     }同时建议您将“项目设置->缩放模式”更改为fixedwidth,便于手机调试...

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