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

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

261. 图集动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 59%]

...n; import laya.display.Stage; import laya.maths.Rectangle; import laya.net.Loader; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class HelloLayabox { private const AniConfPath:String = "../../../../res/role.atlas"; private var roleAni:Animation; public functio...

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

262. 源代码中Handler中的setTo()方法 [ 59%]

...*****278 当调用Handler的时候就会执行这个方法,在使用Laya.loader.load预加载资源的时候,它里边的第二个参数就是Handler类型的,你可以看下 2018-01-31 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起...

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

263. layaAir TS项目如何引用protoBuf库? [ 59%]

...: // 程序入口 class GameMain{     constructor(){         var Loader = Laya.Loader;         var Browser = Laya.Browser;         var Handler = Laya.Handler;         var ProtoBuf = Browser.window.protobuf;         Laya.init(550, 400);         //加载协议...

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

264. laya微信小游戏加载外部素材失败 急急急 [ 59%]

...有资源 var resource = [ { url: "res/atlas/game/game.atlas", type: Laya.Loader.ATLAS }, { url: "res/models/scene/scene.lh", clas: Laya.Sprite3D, priority: 1 }, { url: "res/models/xiaoji/xiaoji.lh", clas: Laya.Sprite3D, priority: 1 }, { url: "res/models/item/item.lh", clas: Laya.Sprite3D, priority:...

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

265. 抖音小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 58%]

...此方法只执行一次 */ onAwake(): void { //小游戏加载分包 Laya.loader.loadPackage("sub1", this.printProgress).then(() => { Laya.loader.load("sub1/Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) La...

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

266. 为什么会出现报错 ani not found:ufo1_down [ 58%]

...添加到舞台 Laya.stage.addChild(this.bg); // 加载图集资源 Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })(); function onLoaded(){ // 创建一个主角 this.hero = new Role(); // 初始化角色 this.hero.init("hero",0,1,0,30); // 设置...

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

267. 在 tiledmap 插入一个精灵在上面 [ 58%]

...  this.init(); } init():void{   Laya.init(800, 700, Laya.WebGL);   Laya.loader.load("res/atlas/images.atlas",Laya.Handler.create(this,this.onLoaded),null,Laya.Loader.ATLAS); }   onLoaded(){   console.info("onLoaded");   this.tiledMap = new Laya.TiledMap();   this.tiledMap.createMap("desert.js...

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

268. 新版版2d粒子问题?同样的代码,LayaAir IDE 2.1.0版本正常,LayaAir IDE 2.2.0beta2版本报错 [ 58%]

...a.stage.on(Laya.Event.CLICK, this, () => {             Laya.loader.load("HallAni/star.part", Laya.Handler.create(this, (settings) => {                 let Particle2D = Laya.Particle2D;                 // 创建 Particle2D 实例           ...

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

269. ToolTip鼠标悬停的使用 [ 58%]

...的提示功能 以下提供了三种鼠标提示package { import laya.net.Loader; import laya.ui.Button; import laya.ui.TipManager; import laya.utils.Browser; import laya.utils.Handler; import ui.TestTipsUI; public class ToolTipDemo { private var _testTip:TestTipsUI;//ui弹框(IDE发布),用...

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

270. [LayaAirIDE3]2d相机打包后问题 [ 58%]

...载建筑图片     private loadBuildingImage(): void {         Laya.loader.load(             "res/building.png", // 你的建筑图片路径             Laya.Handler.create(this, () => {                 // 加载完成后绘制到building Sprite上               ...

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