大约有 1,102 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0050 秒)
Laya_社区(444) Laya3.0_api(292) Laya_示例(112) Laya2.0_示例(80) Laya2.0_文档(61) Laya3.0_文档(51) Laya2.0_api(35) laya_api(27)
附加脚本的使用问题 class ScaleButton { constructor() { console.log("加载ScaleButton"); } private _owner: any; public set owner(o: laya.display.Sprite) { this._owner = o; console.log("设置owner"); } public get owner...
来源: Laya_社区 发布时间: 20170601
...Load is undfine.请教应该怎么定义? export default class LocalTxt{ constructor() { LocalTxt.Instance = this; } onTxtLoad(aText){ console.info("dfasd"); } initTxt(){ Laya.loader.load("res/localtxt.txt",Laya.Handler.create(this, onTxtLoad),null,Loader.TEXT); } } 2019-01-30 添加评论 免费...
来源: Laya_社区 发布时间: 20190130
...面的跳转,但是发现再次 从A跳转到B的时候,class B里的constructor 却执行了两次,然后再操作,变4次,无线递增,怎么解决呢。是什么原因导致的呢? 2017-09-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...
来源: Laya_社区 发布时间: 20170926
... PhysicsCollider extends PhysicsTriggerComponent Uncaught TypeError: Class constructor Component cannot be invoked without 'new' 做微信开放域遇到Uncaught Can not find class laya.ui.WXOpenDataViewer 做微信开放域遇到Uncaught Can not find class laya.ui.WXOpenDataViewer 问题状态 最...
来源: Laya_社区 发布时间: 20170406
...开发语言、LayaAirIDE让项目开发更高效。class Tween_TimeLine { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.A...
来源: Laya2.0_示例 发布时间: 20250224
...ene undefined 引擎SWF动画示例,提示 TypeError: MovieClip is not a constructor 问题状态 最新活动: 2017-10-12 11:55 浏览: 883 关注: 2 人 apeCom • 2017-10-12 11:59 谢谢
来源: Laya_社区 发布时间: 20171012
...type: Laya.Animation }) //在IDE面板中显示属性 ani: Laya.Animation; constructor() { super(); } //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.ani.source = "resources/role.atlas"; //接收动画数据源为图集 thi...
来源: Laya3.0_文档 发布时间: 20240910
...。let apePath = "res/apes/monkey2.png", apeTexture; class Filters_Color { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.sta...
来源: Laya2.0_示例 发布时间: 20250224
...oader = Laya.Loader; // 程序入口 class GameMain{ private begin: Begin; constructor() { Laya.init(600,400, WebGL); Laya.stage.bgColor = "#000000"; Laya.loader.load("comp/button.png", Handler.create(this, this.onLoaded)); } private onLoaded(): void { this.begin = new Begin(); Laya.stage.addChild(t...
来源: Laya_社区 发布时间: 20180829
...ss TestUI extends Laya.Sprite { private s:Laya.Sprite = new Laya.Sprite(); constructor() { super(); var img:Laya.Image = new Laya.Image("comp/bg.png"); this.s.addChild(img); this.addChild(this.s); Laya.stage.on(Laya.Event.CLICK, this, this.hitPoint); } private hitPoint(e:Laya.Event): void { console....
来源: Laya_社区 发布时间: 20170319