大约有 1,106 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0049 秒)
Laya_社区(447) Laya3.0_api(292) Laya_示例(112) Laya2.0_示例(80) Laya2.0_文档(61) Laya3.0_文档(52) Laya2.0_api(35) laya_api(27)
... = this.w / 2; private slideY:number = this.h / 2; private speedInfo:Text; constructor() { Laya.init(this.w, this.h, WebGL); this.createText(); this.start(); } private start():void { for (var i:number = 0; i this.w) { this.stars[i].x = this.stars[i].x - this.w; } else if (this.stars[i].x this.h) { t...
来源: Laya_示例 发布时间: 20251209
...ayaAirIDE让项目开发更高效。class Physics_Physics_CollisionEvent { constructor() { this.count = 7; this.bodys = []; this.touching = []; Laya.Config.isAntialias = true; Laya.Laya.init(1200, 700, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable(); Laya.PhysicsDebugDraw.enable(); Laya.Laya.st...
来源: Laya2.0_示例 发布时间: 20251209
...示颜色差距过大 测试代码 export default class TestView { constructor() { this.init(); } init() { Laya.stage.bgColor='#ffffff'; Laya.stage.addChild(new Laya.Image('comp/img/img1.png')); Laya.timer.once(1000, this, this.delayS...
来源: Laya_社区 发布时间: 20230419
...r3(0, 1, 0)); camera.addComponent(CameraMoveScript);class Particle_Scene { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene: Laya.Scene = Laya.stage.addChild(Laya.Scene.load("../../res/t...
来源: Laya_示例 发布时间: 20251209
...转角度,其值范围从-90至90。代表设备从左至右的运动。 Constructor DetailRotationInfo()Constructorpublic function RotationInfo()Fri Sep 29 2017, 06:34 PM +08:00
来源: laya_api 发布时间: 20170929
...方出错了,大神们求帮助 报错如下: TypeError: cls is not a constructor 最后项目文件也上传了 2018-03-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 Laya_XS 赞同来自: 你的问题用...
来源: Laya_社区 发布时间: 20180330
...s Mail2View extends laya.display.Sprite { private display:ui.mail.mail2UI; constructor(){ super(); this.display = new ui.mail.mail2UI(); this.addChild(this.display); } public destroy():void { this.display.destroy(); this.display.removeSelf(); super.destroy(); } }就是这段简单的测试代码,...
来源: Laya_社区 发布时间: 20170221
...的不一样了 。 很久没用了,都2.0了,入口是哪个main类的constructor里吗?官网新手手册还是老版的。 2018-10-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Xq 赞同来自: M...
来源: Laya_社区 发布时间: 20181026
...和模糊滤镜一直报错 Uncaught TypeError: Laya.GlowFilter is not a constructor at LearnGlowFilter.createGlowFilter (LearnGlowFilter.ts:24) at new LearnGlowFilter (LearnGlowFilter.ts:15) at GameUI.onTipClick (GameUI.ts:36) at EventHandler.__proto.runWith (laya.core.js:13...
来源: Laya_社区 发布时间: 20181119
...typeproperty public var type:int类型,0为whole sheet、1为singal row。Constructor DetailTextureSheetAnimation()Constructorpublic function TextureSheetAnimation(frame:FrameOverTime, startFrame:StartFrame) 创建一个 TextureSheetAnimation 实例。 Parameters frame:FrameOverTime — 动画帧...
来源: Laya2.0_api 发布时间: 20190513