大约有 462 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0087 秒)
...问题:1、Texture和Texture2D有什么区别?我发现自己用Laya.loader.load的图片或ui加载的就是Texture,加载.ls/.lh自动生成的贴图就是Texture2D 2、Texture.bitmap的属性useNum和referenceCount的值好像经常不正确。 上面的例子,明明图片使用了3遍...
来源: Laya_社区 发布时间: 20180314
...提前设置 assets = ["res/ui/dialog (1).png", "res/ui/close.png"]; Laya.loader.load(assets, Handler.create(this, onSkinLoadComplete)); } private function onSkinLoadComplete(e:*=null):void { var dialog:Dialog = new Dialog(); var bg:Image = new Image(assets[0]); dialog.addChild(bg); var button:Butto...
来源: Laya_社区 发布时间: 20170706
...载建筑图片 private loadBuildingImage(): void { Laya.loader.load( "res/building.png", // 你的建筑图片路径 Laya.Handler.create(this, () => { // 加载完成后绘制到building Sprite上 ...
来源: Laya_社区 发布时间: 20251125
...最后回到原大小或原位置,应该用什么缓动模式 请问下loader如何强制加载一个文件,避免浏览器的缓存 请问layaide如何创建一个复合的Button 问题状态 最新活动: 2024-01-10 16:20 浏览: 2186 关注: 2 人 Heured • 2024-01-10 18:10 那如果把清...
来源: Laya_社区 发布时间: 20240109
... not allowed to start. 3d物理不能触发onCollisionEnter事件 请问下loader如何强制加载一个文件,避免浏览器的缓存 List滑动条会引起单元格上的按钮点击后多次触发点击事件 关于Dialog遮罩层移除解决问题的说明 打包出来后的APP打开加载...
来源: Laya_社区 发布时间: 20191028
...载同一场景,想恢复初始状态,结果报错【附Demo】 Laya.loader.clearTextureRes引起的内存泄露以及恢复图片显示闪烁 iosapp获取到的soundChannel.position总是为0,导致不能继续播放 请问2.0 删除脚本后再编译, GameConfig.ts 会自动恢复import和 r...
来源: Laya_社区 发布时间: 20180226
...ir下如何获取图集下的小图资源? 模型资源释放问题 Laya.loader.getRes的声音资源如何用Laya.SoundManager播放? 请问LayaNative2.0能否做到每个子游戏分别打包zip,在Native中解包并跳转? IDE中无法移动资源到另一个目录问题 IDE动画 添加...
来源: Laya_社区 发布时间: 20170215
...undMuted)return null; }; var tSound; if (!Browser.onMiniGame){ tSound=Laya.loader.getRes(url); } if (!soundClass)soundClass=SoundManager._soundClass; if (!tSound){ tSound=new soundClass(); tSound.load(url); Loader.cacheRes(url,tSound); }; var channel; channel=tSound.play(startTime,loops); if (!chann...
来源: Laya_社区 发布时间: 20180709
...加了一个hash后缀。 载入UI的时候都是正常的,但是使用loader.create载入场景的时候,场景里面的lmat文件没有按照hash名去加载,还是加载的原来的名字。我看version文件里面记录了对应lmat文件更名后的情况啊,请问是否是BUG? 2018-...
来源: Laya_社区 发布时间: 20180206
...tChildAt(13) as MeshSprite3D; var texture:Texture2D = Loader.getRes("res/heightMap.png") as Texture2D; //通过高度图纹理和最大高度最小高度生成MeshTerrainSprite3D var terrainSprite:MeshTerrainSprite3D = MeshTerrainSprite3...
来源: Laya_社区 发布时间: 20170505