大约有 481 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)
...都添加了脚本。 > **脚本类**: ```typescript class MouseScript extends Script3D{ private var meshsp:MeshSprite3D; public function MouseScript() {} /** * 覆写3D对象组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ override public func...
来源: Laya2.0_文档 发布时间: 20210715
...同来自: 你好 找不到基类Object的定义,请将该类extends Sprite即可 XML报错,layaAir下的XML不再是原生的XML,而是集成了JS下的XMLDom,具体使用方法,请参考原生js下的XMLDom。 2016-07-11 0 0 分享 微博 QZONE 微信 为什么被...
来源: Laya_社区 发布时间: 20160711
...错"Illegal constructor",请问这个该怎么处理? class ChatLineView extends Laya.Box{ textfield : any = null; constructor(){ super(); // this.initLineView(); } public initLineView (data) : void { this.pos(0,0); console.log(this.textfield); if (this.textfield == null) { var stextfield = new HT...
来源: Laya_社区 发布时间: 20180709
...当前的选项,说明继承没有问题,但是无法更改 class Tab extends TabUI{ constructor() { super() this.zOrder = 1 console.log(this._tab._selectedIndex) //返回1,正常 this._tab._selectedIndex = 0 } } xdkaka • 2017-12-14 17:40 发布肯定是已经发布了的。。。。看了...
来源: Laya_社区 发布时间: 20171214
...器超过一页后必出问题 Uncaught 无法实例class PhysicsCollider extends PhysicsTriggerComponent Uncaught Can not find class laya.ani.bone.Skeleton 发布微信小游戏运行错误,Class constructor xx cannot be invoked without 'new' Uncaught Can not find class laya.html.dom.HTMLDivEleme...
来源: Laya_社区 发布时间: 20190701
...勾选“创建逻辑类”,点击确定。生成的逻辑类代码中 extends ui.GamePauseUI Cannt find name 'ui' 项目类型:typescript 2018-08-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞...
来源: Laya_社区 发布时间: 20180808
...否停止定时器? 在pc上时,做个简单的测试, class TestUI extends ui.test.TestPageUI { constructor() { super(); this.stage.on(Laya.Event.FOCUS, this, this.onFocus); this.stage.on(Laya.Event.BLUR, this, this.onBlur); ...
来源: Laya_社区 发布时间: 20180724
...一下内容: 在LayaAir.d.ts 中缺少 class AnimationState extends laya.ani.AnimationState {} class AnimationState { static stopped: number; static paused: number; static playing: number; constructor(); ...
来源: Laya_社区 发布时间: 20191213
...面图片的错误 GameStart 类如下: export default class GameStart extends ui.GameStartUI { constructor() { super(); this.btnStart.on(Laya.Event.CLICK, this, this.startGame); } startGame(): void { //Laya.Scene.open("Ga...
来源: Laya_社区 发布时间: 20190510
...无法触发onTriggerEnter, export default class BulletControlTrigger extends Laya.Script3D { constructor(){ super(); } /** * 开始触发时执行 * 此方法为虚方法,使用时重写覆盖即可 */ onTriggerEnter(other){ console.log("onTriggerEnter"); }; onTriggerStay(other){ console...
来源: Laya_社区 发布时间: 20191215