大约有 1,155 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0053 秒)
Laya_社区(864) Laya3.0_api(80) Laya2.0_文档(72) Laya_示例(52) Laya2.0_示例(48) Laya3.0_文档(35) laya_api(2) Laya2.0_api(2)
...OWALL; Laya.stage.bgColor = "#232628"; //预加载资源 Laya.loader.load([this.buttonSkin, this.clipSkin, this.bgSkin], Laya.Handler.create(this, this.onSkinLoaded)); } private onSkinLoaded(): void { this.showBg(); this.createTimerAnimation(); this.showTotalSeconds(); this.createController(); } pri...
来源: Laya2.0_文档 发布时间: 20210714
...e(100,300); list.repeatX =1; list.repeatY =this.arr.length; list.itemRender =Item; //Item 为继承BOX类 list.vScrollBarSkin =""; Laya.stage.addChild(list); list.array =this.arr; list.ren...
来源: Laya_社区 发布时间: 20190522
...params = ["move"]; test_e.time = 0.2; let test_cp:Laya.AnimationClip = this._ani.getDefaultState().clip; test_cp.addEvent(test_e); test_cp.on("move_over",this,this.test_over); 预想是播放到0.2秒就会发送"move_over",但事实好像不是这样的,那么怎么监听 通过addEvent...
来源: Laya_社区 发布时间: 20190813
...bleHighAccuracy = true; Laya.Geolocation.watchPosition(Laya.Handler.create(this, this.updatePosition), Laya.Handler.create(this, this.onError)); 报错如下: TypeError: Cannot set property 'enableHighAccuracy' of undefined 会出现无法找到Laya.Geolocation的各类属性错误,请问该如...
来源: Laya_社区 发布时间: 20181217
... true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; // Laya.Stat.show(); this.scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; this.camera = this.scene.addChild(new Laya.Camera()) as Laya.Camera; this.camera.transform.position = new Laya.Vector3(0, 0, 5); this.camera.transform.rotate(n...
来源: Laya_社区 发布时间: 20170321
...ton; private onKeyDown(e):void{ if(e.keyCode == 49 || e.keyCode == 97){ if(this.te == null){ this.te = new Laya.Templet(); this.te.on(Laya.Event.COMPLETE, this, this.teComplete); this.te.loadAni("res/wing_01_side.sk"); } } else if(e.keyCode == 50 || e.keyCode == 98) { if(this.te != null){ this.te.de...
来源: Laya_社区 发布时间: 20190320
...LayaAir IDE 2.2.0beta2版本报错 Laya.stage.on(Laya.Event.CLICK, this, () => { Laya.loader.load("HallAni/star.part", Laya.Handler.create(this, (settings) => { let Particle2D = Laya.Particle2D; // ...
来源: Laya_社区 发布时间: 20190808
... cached:boolean = false; private body:Laya.Sprite; constructor(){ super(); this.init(); } public init():void{ if(!Ball.cached){ Ball.cached = true; this.body = new Laya.Sprite(); this.body.loadImage("war/ball.png"); this.body.pivot(12,12); } this.addChild(this.body); Laya.timer.frameLoop(1,this,this...
来源: Laya_社区 发布时间: 20171108
...Map; // 百度地图命名空间 private convertor = new this.BMap.Convertor(); // 坐标转换接口 private mapDiv; // 包含百度地图的div容器 ``` ### 二、接着是构造函数: ```typescript class WatchPosition { constructor() { Laya.init(1, 1); this.init(); /...
来源: Laya2.0_文档 发布时间: 20210714
...览器是否支持VR模式,有三种模式immersive-vr\immersive-ar\inline this.changeActionButton.visible = await WebXRExperienceHelper.supportXR("immersive-vr"); immersive-vr就是VR模式的参数,如果是AR模式,参数换成immersive-ar即可。本篇文档只介绍VR模式。 如果检测...
来源: Laya3.0_文档 发布时间: 20240910