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

大约有 1,443 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0045 秒)

771. 使用 addChild 加载界面后,绑定事件报错 [ 53%]

...如下: 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

772. 两个移动的简单物体 onTriggerEnter 无法触发 (有悬赏) [ 53%]

...er,   export default class BulletControlTrigger extends Laya.Script3D { constructor(){ super(); }  /** * 开始触发时执行 * 此方法为虚方法,使用时重写覆盖即可 */ onTriggerEnter(other){ console.log("onTriggerEnter"); };  onTriggerStay(other){ console.log("onTriggerStay"); }...

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

773. 其他引擎的Demo-Example_04 [ 53%]

... = 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

774. 使用发光滤镜和模糊滤镜一直报错 [ 53%]

...和模糊滤镜一直报错 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

775. laya.d3.core.particleShuriKen.module.shape.CircleShape [ 53%]

...边缘发射。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

776. laya.device.motion.RotationInfo [ 53%]

...转角度,其值范围从-90至90。代表设备从左至右的运动。 Constructor DetailRotationInfo()Constructorpublic function RotationInfo()Fri Sep 29 2017, 06:34 PM +08:00

来源: laya_api 发布时间: 20170929

777. laya.d3.core.particleShuriKen.module.shape.CircleShape [ 53%]

...边缘发射。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

778. 2D物理-碰撞事件与传感器 [ 53%]

...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

779. Sprite-新手引导 [ 53%]

...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

780. 播放视频只有声音没有图像 [ 53%]

...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