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

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

511. laya.resource.HTMLCanvas_API3.0 [ 75%]

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

512. Sprite-缓存为静态图像 [ 75%]

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

513. 计时器-延迟调用 [ 75%]

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

514. laya中的截屏在WebGL下为什么无效呢? [ 75%]

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

515. Sprite-旋转缩放 [ 75%]

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

516. 摄像机的orthographicVerticalSize属性没作用 [ 75%]

...示时间轴 3D中摄像机绕物体旋转该如何实现? Sprite中的width,height和size(width,height)感觉没作用啊 问题状态 最新活动: 2019-07-16 11:47 浏览: 1725 关注: 2 人

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

517. CameraMoveScript引用后没有作用 [ 75%]

...interval不起作用 lineCap不起作用,什么原因了? Sprite中的width,height和size(width,height)感觉没作用啊 请问下键盘事件的监听只能用stage么?其他对象监听不起作用,谢谢 时间冒泡了,stopPropagation 不起作用 MiniAdpter.autoCacheFile=true...

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

518. image在相应loaded的时候,无法正确获取高度 [ 75%]

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

519. Bug:舞台的Event.RESIZE事件 [ 75%]

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

520. laya.device.media.Video [ 75%]

...mouseThrough属性。 影响对象鼠标事件响应区域的属性为:width、height、hitArea,优先级顺序为:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。 Sprite mouseX : Number[read-only] 返回鼠标在此对象坐标系上的 X 轴坐标信息。 Sprite mouseY ...

来源: laya_api 发布时间: 20170929