大约有 4,034 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0092 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
[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
...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
...组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.txtin.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txtin.size(500, 60); //大小 this.txtin.pivot(this.txtin.width/2, this.txtin.height/2); //轴心点 this.txtin.font = "宋体"; //字体 ...
来源: Laya3.0_文档 发布时间: 20240910
...的不同,label才会改变颜色 开启stroke就会出现这种情况 this.label = new Label(); this.label.text = "王小二的摊位"; this.label.fontSize = 15; this.label.color = "#7CFC00"; this.lab...
来源: Laya_社区 发布时间: 20190514
...错未定义 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
...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_示例 发布时间: 20250223
...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
...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
...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_示例 发布时间: 20250223
...vate displayText: Laya.Text; // 文本显示当前时间 onAwake(): void { this.lightComp = this.owner.getComponent(Laya.DirectionLight2D); // 初始化文本组件 this.displayText = new Laya.Text(); this.displayText.color = "#ffffff"; this.displayText.font = "Arial"; this.displayText.fontSize = 24...
来源: Laya3.0_文档 发布时间: 20250214