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

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

941. 输入设备-指南针 [ 49%]

...eesText, directionIndicator, firstTime = true; class InputDevice_Compass { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(700, 1024, WebGL); Laya.stage.alignV = Stage....

来源: Laya2.0_示例 发布时间: 20250315

942. timer无法执行 [ 49%]

...成球体,直接调用的没有问题的,可以正常执行,但是 constructor() { super(); //添加3D场景 this.onAwake(); //加载camera和light this.onStart(); //加载地面 this.loadGround(); //加载墙面 this.loadwall(); this.loopShoot(); } public loopShoot(): void{ Laya.timer.loop(10...

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

943. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 49%]

...ya.Sprite { public are: Laya.Rectangle = new Laya.Rectangle(0, 0, 60, 30); constructor() { super(); var _fish: Laya.Sprite = new Laya.Sprite() _fish.graphics.drawRect(this.are.x, this.are.y, this.are.width, this.are.height, "#00ff00"); _fish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loo...

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

944. laya.d3.core.material.ExtendTerrainMaterial_API3.0 [ 49%]

...uthor ... Hierarchy Material ExtendTerrainMaterial Implements IClone Index Constructors constructor Properties _id destroyedImmediately lock name renderQueue url uuid ALPHATESTVALUE DEBUG RENDERMODE_OPAQUE RENDERMODE_TRANSPARENT RENDERQUEUE_ALPHATEST RENDERQUEUE_OPAQUE RENDERQUEUE_TRANSPARENT SHADER...

来源: Laya3.0_api 发布时间: 20231115

945. laya.d3.component.animation.CameraAnimations [ 49%]

...式。localModeproperty public var localMode:Boolean = true变换模式。Constructor DetailCameraAnimations()Constructorpublic function CameraAnimations() 创建一个新的 CameraAnimations 实例。 Sat Jun 3 2017, 06:12 PM +08:00

来源: laya_api 发布时间: 20170603

946. 性能测试-卡通人物 [ 49%]

...ate moveSpeed = 2; private rotateSpeed = 2; private characterGroup: Array; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.bgColor = "#232628"; Stat.show(); Laya.loader.load("../../res/cartoonCharacters/cartoonCharactors.json", Ha...

来源: Laya_示例 发布时间: 20250315

947. 求助,屏幕旋转后滚动条没有跟随旋转 [ 49%]

...跟随旋转 module dialog { export class WanF extends ui.dialog.WanFUI { constructor() { super(); this.rotation = 90; this.pos(1060, 280); let panel = new Laya.Panel(); panel.size(638, 527); panel.vScrollBarSkin = "CommDialog/vscroll.png"; this.sp_wanfa.addChild(panel); let t = new Laya.Label(); t....

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

948. 输入设备-贪吃蛇(重力感应) [ 49%]

...private vx:number = 0 private vy:number = 0; private targetPosition:Point; constructor() { Laya.init(Browser.width, Browser.height, WebGL); // 初始化蛇 this.initSnake(); // 监视加速器状态 Accelerator.instance.on(Event.CHANGE, this, this.monitorAccelerator); // 游戏循环 Laya.timer.fram...

来源: Laya_示例 发布时间: 20250315

949. 天空-天空穹 [ 49%]

....load("../../res/threeDimen/env/sp_default/env.png");class SkyDomeSample { 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(new Laya.Scene()) as Laya.Sc...

来源: Laya_示例 发布时间: 20250315

950. Laya3D场景加载问题 [ 49%]

...<String> = [         "gate/Conventional/Test.ls",     ];     constructor() { super(); }     onAwake(): void {         Laya.loader.create(this.resource, Laya.Handler.create(this, this.onPreLoadFinish));     }     onPreLoadFinish() {         //初始化3D场景         ...

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