차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판이전 판
다음 판
이전 판
unity:scriptsinassetbundles [2015/05/23 14:52] – 링크가 옮기기 작업 때문에 적응했습니다 66.249.79.60unity:scriptsinassetbundles [2018/02/22 11:34] (현재) – 바깥 편집 127.0.0.1
줄 1: 줄 1:
 +{{tag>유니티 unity}}
  
 ======Including scripts in AssetBundles====== ======Including scripts in AssetBundles======
  
-AssetBundles can contain scripts as TextAssets but as such they will not be actual executable code. If you want to include code in your AssetBundles that can be executed in your application it needs to be pre-compiled into an assembly and loaded using the Mono Reflection class (Note: Reflection is not available on iOS). You can create your assemblies in any normal C# IDE (e.g. Monodevelop, Visual Studio) or any text editor using the mono/.net compilers.  +AssetBundles can c
- +
-<file csharp>string url = "http://www.mywebsite.com/mygame/assetbundles/assetbundle1.unity3d"; +
-IEnumerator Start () { +
-    // Start a download of the given URL +
-    WWW www = WWW.LoadFromCacheOrDownload (url, 1); +
- +
-    // Wait for download to complete +
-    yield return www; +
- +
-    // Load and retrieve the AssetBundle+
     AssetBundle bundle = www.assetBundle;     AssetBundle bundle = www.assetBundle;
  
줄 30: 줄 21:
 [[AssetBundlesIntro|back to AssetBundles Intro]] [[AssetBundlesIntro|back to AssetBundles Intro]]
  
-{{tag>유니티 unity}} 
    * 출처: [[http://unitykoreawiki.com/index.php?n=KrMain.scriptsinassetbundles|유니티코리아위키]] (CC BY-NC-SA 2.0)    * 출처: [[http://unitykoreawiki.com/index.php?n=KrMain.scriptsinassetbundles|유니티코리아위키]] (CC BY-NC-SA 2.0)
  

unity/scriptsinassetbundles.1432360329.txt.gz · 마지막으로 수정됨: 2015/05/23 14:52 저자 66.249.79.60
CC Attribution-Noncommercial-Share Alike 4.0 International 별도로 명시하지 않을 경우, 이 위키의 내용은 다음 라이선스에 따라 사용할 수 있습니다: CC Attribution-Noncommercial-Share Alike 4.0 International