찾기
내용으로 건너뛰기
추적
문서의 이전 판을 선택했습니다!
저장하면 이 자료로 새 판을 만듭니다.
미디어 파일
======AssetBundles FAQ====== #[[#howdoIcache|How do I cache AssetBundles?]] #[[#crossplatform|Are AssetBundles cross-platform?]] #[[#howidentified|How are assets in AssetBundles identified]] #[[#reusebundles|Can I reuse my AssetBundles in another game?]] #[[#futureplayer|Will an Asset Bundle built now be usable with future versions of Unity?]] #[[#futureplayer|How can I list the objects in an AssetBudle?]] ---- #[[#howdoIcache]]How do I cache AssetBundles? You can use [[ScriptRef:WWW.LoadFromCacheOrDownload.html|WWW.LoadFromCacheOrDownload]] which automatically takes care of saving your AssetBundles to disk. Be aware that on the Webplayer you are limited to 50MB in total (shared between all webplayers). You can buy a separate caching license for your game if you require more space. #%item value=2%[[#crossplatform]]Are AssetBundles cross-platform? AssetBundles are compatible between some platforms. Use the following table as a guideline. |class=bordered |_Platform compatibility for AssetBundles_ ||||| ||Standalone |Webplayer | iOS |Android | |Editor |Y |Y |Y |Y | |Standalone |Y |Y | | | |Webplayer |Y |Y | | || |iOS | | |Y | || |Android | | | |Y || For example, a bundle created while the Webplayer build target was active would be compatible with the editor and with standalone builds. However, it would not be compatible with apps built for the iOS or Android platforms. #%item value=3%[[#howidentified]]How are assets in AssetBundles identified? When you build AssetBundles the assets are identified internally by their filename without the extension. For example a Texture located in your Project folder at "Assets/Textures/myTexture.jpg" is identified and loaded using "myTexture" if you use the default method. You can have more control over this by supplying your own array of ids (strings) for each object when Building your AssetBundle with [[ScriptRef:BuildPipeline.BuildAssetBundleExplicitAssetNames.html|BuildPipeline.BuildAssetBundleExplicitAssetNames]]. #%item value=4%[[#reusebundles]]Can I reuse my AssetBundles in another game? AssetBundles allow you to share content between different games. The requirement is that any Assets which are referenced by GameObjects in your AssetBundle must either be included in the AssetBundle or exist in the application (loaded in the current scene). To make sure the referenced Assets are included in the AssetBundle when they are built you can pass the [[ScriptRef:BuildAssetBundleOptions.CollectDependencies.html|BuildAssetBundleOptions.CollectDependencies]] option. #%item value=5%[[#futureplayer]]Will an Asset Bundle built now be usable with future versions of Unity? Asset bundles can contain a structure called a ''type tree'' which allows information about asset types to be understood correctly between different versions of Unity. On desktop platforms, the type tree is included by default but can be disabled by passing the [[ScriptRef:BuildAssetBundleOptions.DisableWriteTypeTree.html|BuildAssetBundleOptions.DisableWriteTypeTree]] to the BuildAssetBundle function. Webplayers intrinsically rely on the type tree and so it is always included (ie, the DisableWriteTypeTree option has no effect). Type trees are never included for mobile and console asset bundles and so you will need to rebuild these bundles for each new version of Unity. #%item value=6%[[#futureplayer]]How can I list the objects in an AssetBudle? You can use [[ScriptRef:AssetBundle.LoadAll.html|AssetBundle.LoadAll]] to retrieve an array containing all objects from the AssetBundle. It is not possible to get a list of the identifiers directly. A common workaround is to keep a separate TextAsset to hold the names of the assets in the AssetBundle. [[unity:AssetBundlesIntro|back to AssetBundles Intro]] {{tag>유니티 unity}} * 출처: [[http://unitykoreawiki.com/index.php?n=KrMain.abfaq|유니티코리아위키]] (CC BY-NC-SA 2.0)
2+1?
이 필드는 비어 있도록 유지하세요:
저장
미리 보기
취소
편집 요약
참고: 이 문서를 편집하면 내용은 다음 라이선스에 따라 배포하는 데 동의하는 것으로 간주합니다:
CC Attribution-Noncommercial-Share Alike 4.0 International
연결문서
유니티3D ( Unity3D )
문서 도구
문서 보기
이전 판
연결문서
맨 위로
다크 모드로 보기
☀️
Toggle Menu
유니티3D ( Unity3D )
너두 고쳐두 됩니다.
사이트 도구
최근 바뀜
미디어 관리자
사이트맵
사용자 도구
등록
로긴
최근 수정된 문서
misuse_topical5
노박
unique_items
dinner_bell
deputy_beagle
ratslayer
one_for_my_baby
alerio
power_fist
제거됨
fixer
climb_ev_ry_mountain
companion
[장비 분실]
crashed_vertibird
brotherhood_t-51b_power_armor
marco
i_forgot_to_remember_to_forget
cateye