大约有 334 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0143 秒)
...type; //初始化 _proto.init = function(){ console.log('RunGame Init'); //背景 this.bg = new Background(); this.addChild(this.bg); //地板 this.mapFloor = new MapFloor(); this.addChild(this.mapFloor); //玩家 this.player = new Player(); this.player.x = 32 * 8; this.player.y = 32 * 4; this.addCh...
来源: Laya_社区 发布时间: 20160801
...构和实现原理(二)项目调试原理及完美开发调试方案 1.背景 通常情况下我们在做项目时都是在LayaAir IDE下进行调试和开发的。通常情况不会接触到typescript的“编译”和bundle过程。这节我们要深入了解其中的过程,并剥离出来,...
来源: Laya_社区 发布时间: 20200918
...0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? 播放背景音乐的问题 刚打开 桌面调试出现报错Uncaught (in promise) DOMException: play() 项目分包后, 运行出错 官网示例摇一摇报错,就解决方案 本地调试加载本地图片都报错 问题...
来源: Laya_社区 发布时间: 20180322
...ear Flags(清除标志) 支持 (包括:Skybox天空盒(Background背景色)、Solid Color纯色(Background背景色)、Depth only仅深度、Don’t Clear不清除) Projection(投射方式) 支持(包括:Perspective透视(Field of View视野范围),Orthographic正交...
来源: Laya3.0_文档 发布时间: 20251010
...置为true,对性能有一定影响。 Sprite bgColor : String 文本背景颜色,以字符串表示。 Text blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bold : Boolean 指定文本是否为粗体字。 默认值为 false,这意味着不使用粗...
来源: laya_api 发布时间: 20170929
...置为true,对性能有一定影响。 Sprite bgColor : String 文本背景颜色,以字符串表示。 Text blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bold : Boolean 指定文本是否为粗体字。 默认值为 false,这意味着不使用粗...
来源: Laya2.0_api 发布时间: 20190513
...明通道。 特点:节省显存,但不支持透明。 应用场景:背景贴图、地表、天空盒等不需要透明度的场景等。 2.8.3 压缩纹理格式 描述:采用 GPU 专用压缩算法(如 ETC, ASTC等),在显存中高效存储像素数据。 特点:大幅减少内存...
来源: Laya3.0_文档 发布时间: 20251128
... Menu Globals "laya/media/SoundNode" SoundNode Class SoundNode 用于播放背景音乐或者音效的节点 Hierarchy Sprite SoundNode Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeight...
来源: Laya3.0_api 发布时间: 20231115
...宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 init();//初始化 } private function init():void { var animation:Animation = new Animation();//创建一个 Animation 类的实例对象 animation 。 animation.loadAtlas("resource/ani/fighter.json");//加载...
来源: Laya3.0_api 发布时间: 20231115
...r Flags(清除标志) | 支持 (包括:Skybox天空盒(Background背景色)、Solid Color纯色(Background背景色)、Depth only仅深度、Don’t Clear不清除) | | Projection(投射方式) | 支持(包括:Perspective透视(Field of View视野范围),Orthographic...
来源: Laya2.0_文档 发布时间: 20210714