大约有 146 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0173 秒)
...getBounds()还有疑惑, 问题一:如果是动画、骨骼或image的纹理可能会实时变大变小,而又要实现碰撞,是不是能够准确获取到实时的碰撞区域。 然后是官方API对其有这么一段描述: “getBounds():Rectangle 获取本对象在父容器坐标系...
来源: Laya_社区 发布时间: 20161202
...后,会自动缓存至资源库中。 Image source : Texture 对象的纹理资源。 Image stage : Stage[read-only] 对舞台 stage 的引用。Sprite staticCache : Boolean设置cacheAs为非空时此值才有效,staticCache=true时,子对象变化时不会自动更新缓存,只能通过...
来源: Laya2.0_api 发布时间: 20190513
...代码 (function(){ /** * 地板类 */ function Floor(){ //背景贴图纹理 this.bgTexture = null; //最大右边距离 this.maxRight = 0; //判断是否超过右边最大距离了 this.isOutComplete = false; //背景 this.bg = null; //背景右边补丁 this.rightBg = null; Floor.__super.call(t...
来源: Laya_社区 发布时间: 20160801
...时候执行的函数//从资源来表中获取加载好的background图片纹理 var texture = Laya.loader.getRes('res/background.png'); //创建一个bg显示对象 var bg = new laya.display.Sprite(); //将上面的texture纹理绘制到bg图像里面 bg.graphics.drawTexture(texture, 0, 0); //将b...
来源: Laya_社区 发布时间: 20160722
...是今天再去看日志又没有这样的日志了,这个日志应该是纹理已经被卸载了,不在内存里面的原因导致的黑屏 2018-08-20 0 0 分享 微博 QZONE 微信 邓群豪 赞同来自: 我在游戏启动的时候(弹出LAYA AIR)退到后台还有这样的日志 08-20 14...
来源: Laya_社区 发布时间: 20180820
... number 高度。 Default value format: number = RenderTargetFormat.R8G8B8 纹理格式。 Default value depthStencilFormat: number = RenderTargetFormat.DEPTH_16 深度格式。 创建一个 RenderTexture 实例。 Default value create: boolean = true Returns NativeRenderTexture2D Properties _id _id...
来源: Laya3.0_api 发布时间: 20231115
...处理是 /** * json文件读取成功后,解析里面的纹理数据,进行加载 * @param e JSON数据 */ private function onJsonComplete(e:*):void { _mapSprite = new Sprite(); Laya.stage...
来源: Laya_社区 发布时间: 20161109
... /** * 初始化此类。 * @param texture 纹理对象。 * @param vb 顶点数组。 * @param ib 顶点索引数组。 */ public init(texture: Laya.Texture, vb: Array<number> = null, ib: Array<number> ...
来源: Laya_社区 发布时间: 20170606
...出来 (function(){ /** * 地板类 */ function Floor(){ //背景贴图纹理 this.bgTexture = null; //最大右边距离 this.maxRight = 0; //判断是否超过右边最大距离了 this.isOutComplete = false; //背景 this.bg = null; //背景右边补丁 this.rightBg = null; //当前地板上面...
来源: Laya_社区 发布时间: 20160803
...自定义皮肤 Parameters slotName: string texture: Texture 自定义的纹理 Returns void set_anchorX set_anchorX(value: number): void Inherited from Text.set_anchorX Defined in laya/display/Sprite.ts:970 Parameters value: number Returns void set_anchorY set_anchorY(value: number): void Inherited...
来源: Laya3.0_api 发布时间: 20231115