大约有 1,738 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0062 秒)
Laya_社区(1124) Laya3.0_api(223) Laya2.0_文档(89) Laya2.0_api(72) Laya2.0_示例(66) Laya_示例(63) laya_api(62) Laya3.0_文档(39)
...ext cpuMemory destroyed gpuMemory height id obsolute referenceCount source width cpuMemory gpuMemory Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory clear destroy event getContext getMemSize getTexture hasListener isCreateFromURL off offAll offAllCall...
来源: Laya3.0_api 发布时间: 20231115
...andom() * 360; text.color = "#CCCCCC"; text.x = Math.random() * Laya.stage.width; text.y = Math.random() * Laya.stage.height; textBox.addChild(text); } //缓存为静态图像 textBox.cacheAsBitmap = true; Laya.stage.addChild(textBox); } })();module laya { import Sprite = Laya.Sprite; import Stage =...
来源: Laya_示例 发布时间: 20240930
...tion() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; demonstrate(); })(); function de...
来源: Laya_示例 发布时间: 20240930
... https://ask.layabox.com/question/4150例子中 如果 Laya.init(Browser.width, Browser.height,WebGL);截屏是无效的。如果 Laya.init(Browser.width, Browser.height);才能截屏成功。 那如何在 Laya.init(Browser.width, Browser.height,WebGL)截屏成功呢?
来源: Laya_社区 发布时间: 20170618
...tion() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; createApe(); })(); function createApe() { ...
来源: Laya_示例 发布时间: 20240930
...示时间轴 3D中摄像机绕物体旋转该如何实现? Sprite中的width,height和size(width,height)感觉没作用啊 问题状态 最新活动: 2019-07-16 11:47 浏览: 1725 关注: 2 人
来源: Laya_社区 发布时间: 20190715
...interval不起作用 lineCap不起作用,什么原因了? Sprite中的width,height和size(width,height)感觉没作用啊 请问下键盘事件的监听只能用stage么?其他对象监听不起作用,谢谢 时间冒泡了,stopPropagation 不起作用 MiniAdpter.autoCacheFile=true...
来源: Laya_社区 发布时间: 20200914
...is.init); } private init():void { console.log("init", this.x, this.y, this.width, this.height, this.scaleX, this.scaleY); var createOption: any = { isStatic: false, }; this.matterBody = Matter.Bodies.rectangle(this.x, this.y, this.width, this.height, createOption); Matter.World.add(GameMain.instance...
来源: Laya_社区 发布时间: 20180530
Bug:舞台的Event.RESIZE事件 Laya.stage.width = 100; Laya.stage.height = 100; Laya.stage.size(200, 200); Laya.stage.setScreenSize(300, 300); 这几句代码只有后面两个才会抛出Event.RESIZE事件,设置width和height不会,这是不是BUG?还是官方特意这样的? 2016-08-05 ...
来源: Laya_社区 发布时间: 20160805
...mouseThrough属性。 影响对象鼠标事件响应区域的属性为:width、height、hitArea,优先级顺序为:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。 Sprite mouseX : Number[read-only] 返回鼠标在此对象坐标系上的 X 轴坐标信息。 Sprite mouseY ...
来源: laya_api 发布时间: 20170929