찾기
내용으로 건너뛰기
추적
•
ShaderLab syntax: GrabPass
•
Copy-on-write
•
캘리포니아석양 자동차영화관 (California Sunset Drive-in)
•
sound
•
Openssh
문서의 이전 판을 선택했습니다!
저장하면 이 자료로 새 판을 만듭니다.
미디어 파일
======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. <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; // Load the TextAsset object TextAsset txt = bundle.Load("myBinaryAsText", typeof(TextAsset)) as TextAsset; // Load the assembly and get a type (class) from it var assembly = System.Reflection.Assembly.Load(txt.bytes); var type = assembly.GetType("MyClassDerivedFromMonoBehaviour"); // Instantiate a GameObject and add a component with the loaded class GameObject go = new GameObject(); go.AddComponent(type); }</file> [[AssetBundlesIntro|back to AssetBundles Intro]] {{tag>유니티 unity}} * 출처: [[http://unitykoreawiki.com/index.php?n=KrMain.scriptsinassetbundles|유니티코리아위키]] (CC BY-NC-SA 2.0)
저장
미리 보기
취소
편집 요약
참고: 이 문서를 편집하면 내용은 다음 라이선스에 따라 배포하는 데 동의하는 것으로 간주합니다:
CC Attribution-Noncommercial-Share Alike 4.0 International
연결문서
AssetBundles (Pro only)
유니티3D ( Unity3D )
문서 도구
문서 보기
이전 판
연결문서
맨 위로
다크 모드로 보기
☀️
Toggle Menu
유니티3D ( Unity3D )
너두 고쳐두 됩니다.
사이트 도구
최근 바뀜
미디어 관리자
사이트맵
사용자 도구
등록
로긴
최근 수정된 문서
AI 비서 제니 (Jenny)
jenny_test
Link 'Jenny' to tech:jenny page
태열이니까 웨스트코트를...?
IYF (International Youth Fellowship)
[박옥수 계열(대한예수교침례회 기쁜소식선교회: IYF)]
Amcrest http api v3.26
her_2013
제거됨
영화: Her (2013)
폴아웃 뉴 베가스 (FNV)
달려라 달려 (Run Goodsprings Run)
추종자의 초소 (Follower's Outpost)
불필요한 안내 문구 삭제 (by 제니)
자연 임신 확률
Openclaw
배란유도 (Ovulation Induction)
[난포 터지는 주사]
정자회복플랜
[보충 루틴 (아침 기준)]
정액검사
↷ 링크가 이동 작업으로 인해 적응했습니다
의학 (Medicine)
↷ 링크가 이동 작업으로 인해 적응했습니다
정자회복플랜
↷ 문서 이름이 med:정자회복플랜에서 med:sperm_health(으)로 바뀌었습니다