찾기
내용으로 건너뛰기
추적
•
sebocap
•
misuse_dermatop9
•
decidual_reaction
문서의 이전 판을 선택했습니다!
저장하면 이 자료로 새 판을 만듭니다.
미디어 파일
======Building AssetBundles====== There are three class methods you can use to build AssetBundles: * [[ScriptRef:BuildPipeline.BuildAssetBundle.html|BuildPipeline.BuildAssetBundle]] allows you to build AssetBundles of any type of asset. * [[ScriptRef:BuildPipeline.BuildStreamedSceneAssetBundle.html|BuildPipeline.BuildStreamedSceneAssetBundle]] is used when you want to include only scenes to be streamed and loaded as the data becomes available. * [[ScriptRef:BuildPipeline.BuildAssetBundleExplicitAssetNames.html|BuildPipeline.BuildAssetBundleExplicitAssetNames]] is the same as BuildPipeline.BuildAssetBundle but has an extra parameter to specify a custom string identifier (name) for each object. =====An example of how to build an Asset Bundle===== Building asset bundles is done through editor scripting. There is basic example of this in the scripting documentation for [[ScriptRef:BuildPipeline.BuildAssetBundle.html|BuildPipeline.BuildAssetBundle]]. For the sake of this example, copy and paste the script from the link above into a new C# script called ExportAssetBundles. This script should be placed in a folder named Editor, so that it works inside the Unity Editor. {{:unity3d:ExportAssetBundlesScript.png}} Now in the **Assets** menu, you should see two new menu options. {{:unity3d:AssetBundleMenuOptions.png}} - **Build AssetBundle From Selection - Track dependencies**. This will build the current object into an asset bundle and include all of its dependencies. For example if you have a prefab that consists of several hierarchical layers then it will recursively add all the child objects and components to the asset bundle. - **Build AssetBundle From Selection - No dependency tracking**. This is the opposite of the previous and will only include the single asset you have selected. For this example, you should create a new prefab. First create a new Cube by going to **GameObject -> Create Other -> Cube**, which will create a new cube in the Hierarchy View. Then drag the Cube from the Hierarchy View into the Project View, which will create a prefab of that object. You should then right click the Cube prefab in the project window and select **Build AssetBundle From Selection - Track dependencies**. At this point you will be presented with a window to save the bundled asset. If you created a new folder called "AssetBundles" and saved the cube as //Cube.unity3d//, your project window will now look something like this. {{:unity3d:AssetBundlesCube.png}} At this point, you can move the AssetBundle //Cube.unity3d// elsewhere on your local storage, or upload it to a server of your choice. [[AssetBundlesIntro|back to AssetBundles Intro]] [[unity:DownloadingAssetBundles|Downloading Asset Bundles Example]] {{tag>유니티 unity}} * 출처: [[http://unitykoreawiki.com/index.php?n=KrMain.BuildingAssetBundles|유니티코리아위키]] (CC BY-NC-SA 2.0)
저장
미리 보기
취소
편집 요약
참고: 이 문서를 편집하면 내용은 다음 라이선스에 따라 배포하는 데 동의하는 것으로 간주합니다:
CC Attribution-Noncommercial-Share Alike 4.0 International
연결문서
AssetBundles (Pro only)
Downloading AssetBundles
유니티3D ( Unity3D )
문서 도구
문서 보기
이전 판
연결문서
맨 위로
다크 모드로 보기
☀️
Toggle Menu
유니티3D ( Unity3D )
너두 고쳐두 됩니다.
사이트 도구
최근 바뀜
미디어 관리자
사이트맵
사용자 도구
등록
로긴
최근 수정된 문서
vt-d
cpu
isotretinoin
[남성 주의사항]
불륜
[증거]
타바코씨_처럼_이혼
외도
[밥 투정하다 이혼한 슬픈 이야기... (2ch)]
친자확인
[친자확인]
vaginal_candidiasis
[증상]
자연임신확률
[자연 임신 확률]
도쿠위키
test
만듦
엑소크래프트
nms
엑소
제거됨
갈라지는_공허_알
sleep-deprivation
↷ 링크가 이동 작업으로 인해 적응했습니다
무역