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

大约有 4,095 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0089 秒)

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

222. 在线急等,发现你们这个编译器一个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

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

224. oppo CanvasRenderingContext2D 并没有实现 drawImage;报错; [ 96%]

...premultiplyAlpha=false); var width=source.width; var height=source.height; this._width=width; this._height=height; this._setWarpMode(/*laya.webgl.WebGLContext.TEXTURE_WRAP_S*/0x2802,this._wrapModeU); this._setWarpMode(/*laya.webgl.WebGLContext.TEXTURE_WRAP_T*/0x2803,this._wrapModeV); this._setFilter...

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

225. 2.0label不改变文本内容,label颜色无法直接改变,1.0可以 [ 96%]

...的不同,label才会改变颜色 开启stroke就会出现这种情况   this.label = new Label();             this.label.text = "王小二的摊位";             this.label.fontSize = 15;             this.label.color = "#7CFC00";             this.lab...

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

226. 飞机大战出现的问题注册了类New的时候报错未定义 [ 96%]

...错未定义 var Game=(function(){ (function Game(){ Laya.init(400,852); this.bg = new BackGround(); //把背景添加到舞台上显示出来 Laya.stage.addChild(this.bg);  })();     })();   //循环滚动的游戏背景 var BackGround = (function(_super){ function BackGround(){ BackGround.sup...

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

227. Sprite-新手引导 [ 96%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createPage(); } createPage() { const Sprite = Laya.Sprite; // 绘制底图 gameContainer = new Sprite(); Laya.stage.addChild(gameContainer); gameContainer.loadImage("res/guide/crazy_snowball.png"); gameContainer.on(Laya....

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

228. 设置滤镜(TypeScript-LayaAir基础篇(TS)-位图) [ 96%]

...ge.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(this.ApePath, Handler.create(this, this.setup)); } private setup(): void { this.normalizeApe(); this.makeRedApe(); this.grayingApe(); } private normalizeApe(): void { var originalApe: Sprite = this.createApe(); this.apeTextur...

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

229. WebSocket发送与接收数据(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 95%]

...e; public function Game() { //初始化引擎 Laya.init(600, 400,WebGL);// this.byte = new Byte(); this.byte.endian = Byte.LITTLE_ENDIAN;//这里我们采用小端; this.socket = new Socket(); this.socket.endian = Byte.LITTLE_ENDIAN;//这里我们采用小端; this.socket.connectByUrl("ws://loca...

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

230. 滤镜-发光滤镜 [ 95%]

...a.stage.bgColor = "#232628"; Laya.loader.load(apePath, Laya.Handler.create(this, this.setup)); } setup() { this.createApe(); this.applayFilter(); } createApe() { const Sprite = Laya.Sprite; this.ape = new Sprite(); Laya.stage.addChild(this.ape); let texture = Laya.loader.getRes(apePath); this.ape.gr...

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