大约有 1,382 项符合查询结果, 库内数据总量为 30,789 项。 (搜索耗时: 0.0060 秒)
Laya_社区(851) Laya2.0_文档(129) Laya3.0_api(105) Laya_示例(75) Laya2.0_api(66) laya_api(61) Laya2.0_示例(51) Laya3.0_文档(44)
...ew Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya.stage.height - inputText.height >> 1; // 移动...
来源: Laya_社区 发布时间: 20180612
...age.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { let vGap = 100; this.rotateTimeBasedText = this.createText("基于时间旋转", Laya.stage.width / 2, (Laya.stage.height - vGap) / 2); this.rotateFrameRateBasedText = this.createText("基于帧频旋转", this.rotateTimeBasedText.x, th...
来源: Laya2.0_示例 发布时间: 20241127
...Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var texture:Texture = new Texture(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawText...
来源: laya_api 发布时间: 20170929
...ild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 1.5, 3)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.direction = ne...
来源: Laya_示例 发布时间: 20241127
...nTouchCancel); var rankSprite2 = new Laya.Sprite(); rankSprite2.zOrder = 100; Laya.stage.addChild(rankSprite2); var texture = new Laya.Texture(sharedCanvas); texture.bitmap.alwaysChange = true; rankSprite2.graphics.drawTexture(texture, left*pixelRatio, top*pixelRatio, width*pixelRatio,height*pixel...
来源: Laya_社区 发布时间: 20180426
... text.text = "游戏的水平方向"; text.color = "gray"; text.fontSize = 100; text.centerX = 0; text.centerY = 50; Laya.stage.addChild(text); } Laya.init(0, 0, Laya.WebGL); Laya.stage.scaleMode = "full"; Laya.stage.bgColor = "#232628"; //自动横屏,游戏的水平方向始终与浏览器屏幕...
来源: Laya2.0_文档 发布时间: 20210715
...t timer(): Timer Inherited from Node.timer Defined in laya/display/Node.ts:1009 获取timer Returns Timer transform get transform(): Matrix set transform(value: Matrix): void Inherited from Text.transform Defined in laya/display/Sprite.ts:873 对象的矩阵信息。通过设置矩阵可以实现节...
来源: Laya3.0_api 发布时间: 20231115
...Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var texture:Texture = new Texture(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawText...
来源: laya_api 发布时间: 20170929
... text.text = "游戏的水平方向"; text.color = "gray"; text.fontSize = 100; text.centerX = 0; text.centerY = 50; Laya.stage.addChild(text); } Laya.init(0, 0, Laya.WebGL); Laya.stage.scaleMode = "full"; Laya.stage.bgColor = "#232628"; //自动横屏,游戏的水平方向始终与浏览器屏幕...
来源: Laya2.0_文档 发布时间: 20210715
... public var color1:Color; /** @prop {name:snumber1,type:sNumber,min:10,max:100}*/ public var snumber1:int = 11; /** @prop {name:node1,type:Node}*/ public var node1:Node; /** @prop {name:sizegrid1,type:SizeGrid}*/ public var sizegrid1:*; /** @prop {name:colorarray,type:ColorArray}*/ public var colora...
来源: Laya2.0_文档 发布时间: 20210715