大约有 151 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0045 秒)
Laya3.0_api(59) Laya_社区(44) laya_api(11) Laya2.0_文档(11) Laya3.0_文档(10) Laya2.0_api(7) Laya_示例(6) Laya2.0_示例(3)
...lasspublic class EffectMaterialInheritanceEffectMaterial BaseMaterial laya.resource.Resource EffectMaterial 类用于实现Mesh特效材质。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alphaTest : Boolean 获取是否透明裁剪。 Base...
来源: Laya2.0_api 发布时间: 20190513
...s,引擎版本是2.12.2 在循环播放spine的时候,定时调用Laya.Resource.destroyUnusedResources();清空没有引用的资源,这时会触发spine的图片资源被清除,从而导致出现闪烁。 原因:spine动画模板类SpineTemplet_3_x 使用的Texture是加载回来后,从...
来源: Laya_社区 发布时间: 20220820
...rikenParticleMaterialInheritanceShurikenParticleMaterial BaseMaterial laya.resource.Resource ShurikenParticleMaterial 类用于实现粒子材质。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alphaTest : Boolean 获取是否透明裁剪...
来源: Laya2.0_api 发布时间: 20190513
...i:number = arr.length - 1;i>-1;i--){ //根据资源路径获取资源(Resource为材质、贴图、网格等的基类) var resource:Laya.Resource = Laya.loader.getRes(arr[i].url); //资源释放 resource.dispose(); } 检验资源文件是否被释放,可以用Laya.Loader.loadedMap来检测...
来源: Laya_社区 发布时间: 20180814
...aya.display.Sprite; import laya.utils.Handler; import laya.resource.Texture; public class LayaSample { private var img:Sprite ; private var index:int ; public function LayaSample() { //初始化引擎 ...
来源: Laya_社区 发布时间: 20170918
...包括使用纹理压缩信息,打开.json文件如下: { "files": { "resources": [ "layabox.png" ] }, "config": [ { "sRGB": true, "filterMode": 1, "mipmap": true, "pma": false, "files": [ { "file": "0", "ext": "dds", "format": 3 }, { "file": "", "ext": "png", "format": 1 } ], "platforms": { "0"...
来源: Laya3.0_文档 发布时间: 20251010
...如下所示: ```java package { import laya.display.Sprite; import laya.resource.Texture; import laya.utils.Handler; public class Main { private var monkey1:String = "res/img/monkey1.png"; private var monkey2:String = "res/img/monkey2.png"; private var flag:Boolean = false; private var img:Sprite;...
来源: Laya2.0_文档 发布时间: 20210715
...:Texture public function set source(value:Texture):voidSee alsolaya.resource.Texturewidthproperty width:Number 表示显示对象的宽度,以像素为单位。 Implementation public function get width():Number public function set width(value:Number):voidMethod Detaildestroy...
来源: Laya2.0_api 发布时间: 20190513
...生不同的类型对象,getRes方法可直接读出来),它们都是Resource类的子类,因此对象调用dispose()方法后就可释放资源。 释放完资源后,还可通过Loader.loadeMap属性查看现有缓存中的资源。 详情请看链接http://ldc.layabox.com/doc/?nav=zh-js-...
来源: Laya_社区 发布时间: 20180716
...olicy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://www.xxx.com' is therefore not allowed access. 2018-01-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aar...
来源: Laya_社区 发布时间: 20180109