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

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

211. 屏幕适配的缩放模式详解(TypeScript-2D基础篇(TS)-屏幕适配) [ 96%]

...      //设置适配模式         Laya.stage.scaleMode = this.modes;         //设置舞台背景色         Laya.stage.bgColor  = "#ffff99";             //实例一个背景         var bg = new Image();         bg.skin = "res/img/l...

来源: Laya2.0_文档 发布时间: 20200307

212. Clip组件Bug:Play方法无法结束循环 [ 96%]

...s);         if (interval != void 0) {             this.interval = interval;         }          this.on(Laya.Event.COMPLETE, this, () => {             this.destroy();         });         this.frameIndex = 0;       ...

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

213. 请教如何实现完美的LoopList?尝试了下总是有倒带的卡顿动作隐藏不掉 [ 96%]

...顿,而且会显示倒带 private onLoop(){              if(this.WheelList.visible==true)             {                 this.WheelList.set_visible(false);                 this.WheelList2.set_visible(true);                  t...

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

214. LayaBox进阶之UI管理类 [ 96%]

...aya.Sprite; private scene: GameScence; private uiList:any; constructor() { this.mainContent = new Laya.Sprite(); this.uiList = ; } }mainContent 为默认添加到的层级, GameScence 为UI管理器默认场景 uiList放所有加载进来的场景 第一步实现 打开界面 openWindow public ope...

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

215. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 96%]

...e.bgColor = "#232628"; //这里是我注释掉的代码 //Laya.loader.load(this.ApePath, Handler.create(this, this.setup)); this.setup(); } private setup(): void { this.createApe(); this.showDragRegion(); } private createApe(): void { this.ape = new Sprite(); //this.ape.loadImage(this.ApePath); Laya...

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

216. list方法onSelect失效 [ 96%]

...: 使用list做图片选择栏,代码如下: onClickChooseIcon() { this.imgList.visible = true; this.imgListBg.visible = true; this.reqImage = this.iconImg; this.imgList.vScrollBarSkin = ''; this.imgList.selectEnable = true; this.imgList.array = listArr; this.imgList.renderHandler = new Laya.H...

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

217. this.scene.physicsSimulation.rayCastAll 报错 [ 96%]

this.scene.physicsSimulation.rayCastAll 报错 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 this.camera.viewportPointToRay(this.point,this.ray);   /// Laya.PhysicsSimulation.rayCast(this.ray, this.outHitResult, 30, 0) //拿到...

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

218. CommandBuffer_Outline 每次 addCommandBuffer都会永久增加10Gpu,removed掉相机事件也不会减少 [ 96%]

...public static GetInstance(): CommandBuffer_Outline{         if(this.instance == null) this.instance = new CommandBuffer_Outline();         return this.instance;     }      public init(): void {         //使用之前必须先初始化          i...

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

219. 在线急等,发现你们这个编译器一个bug,不能实现负负得正 [ 96%]

...QZONE 微信 l13273866189 赞同来自: _proto_.moveDownBall = function(){ this.ball.x -= this.vx; this.ball.y += this.vy; console.log("111111"); this.vy *= 0.99; this.vy += 0.25; console.log("222222"); if (this.ball.y + this.vy >= this.stageHeight ||this.ball.y + this.vy <= 0) { this.vy = -th...

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

220. [Error] TypeError: null is not an object (evaluating 'this._style._tf') [ 96%]

[Error] TypeError: null is not an object (evaluating 'this._style._tf') 请问这个怎么解决? Safari , Chrome 同样有这个问题 [Error] TypeError: null is not an object (evaluating 'this._style._tf') (anonymous function) (laya.core.js:16463) toParentPoint (laya.core.js:15797) localToGlo...

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