大约有 1,443 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0045 秒)
Laya3.0_api(470) Laya_社区(443) Laya_示例(152) Laya2.0_示例(119) Laya2.0_api(71) Laya2.0_文档(71) Laya3.0_文档(59) laya_api(58)
...如下: export default class GameStart extends ui.GameStartUI { constructor() { super(); this.btnStart.on(Laya.Event.CLICK, this, this.startGame); } startGame(): void { //Laya.Scene.open("GameView.scene"); ...
来源: Laya_社区 发布时间: 20190510
...er, export default class BulletControlTrigger extends Laya.Script3D { constructor(){ super(); } /** * 开始触发时执行 * 此方法为虚方法,使用时重写覆盖即可 */ onTriggerEnter(other){ console.log("onTriggerEnter"); }; onTriggerStay(other){ console.log("onTriggerStay"); }...
来源: Laya_社区 发布时间: 20191215
... = 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_示例 发布时间: 20241002
...和模糊滤镜一直报错 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
...边缘发射。radiusproperty public var radius:Number发射器半径。Constructor DetailCircleShape()Constructorpublic function CircleShape() 创建一个 CircleShape 实例。 Method Detail_getShapeBoundBox()methodoverride protected function _getShapeBoundBox(boundBox:BoundBox):void Parameters b...
来源: laya_api 发布时间: 20170929
...转角度,其值范围从-90至90。代表设备从左至右的运动。 Constructor DetailRotationInfo()Constructorpublic function RotationInfo()Fri Sep 29 2017, 06:34 PM +08:00
来源: laya_api 发布时间: 20170929
...边缘发射。radiusproperty public var radius:Number发射器半径。Constructor DetailCircleShape()Constructorpublic function CircleShape() 创建一个 CircleShape 实例。 Method Detail_getShapeBoundBox()methodoverride protected function _getShapeBoundBox(boundBox:BoundBox):void Parameters b...
来源: Laya2.0_api 发布时间: 20190513
...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_示例 发布时间: 20241002
...nteractionArea, hitArea, tipContainer, guideStep = 0; class Sprite_Guide { constructor() { const WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(1285, 727, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.s...
来源: Laya2.0_示例 发布时间: 20241002
...r = Laya.SoundManager; export default class LoginGame extends Laya.Scene { constructor() { super(); LoginGame.instance = this; Laya.MouseManager.multiTouchEnabled = false; this.loadScene("LoginGame.scene"); } onEnable() { SoundManager.playMusic("audio/梅林茂 - 静かな古都.mp3", 0); this.login...
来源: Laya_社区 发布时间: 20181124