반응형
- 코드 작성
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ResourceLoad : MonoBehaviour
{
void Start()
{
GameObject obj = Resources.Load("GameObject") as GameObject;
Sprite sprite = Resources.Load("GameObject") as Sprite;
AudioClip audioClip = Resources.Load("GameObject") as AudioClip;
TextAsset textAsset = Resources.Load("GameObject") as TextAsset;
Texture2D texture2D = Resources.Load("GameObject") as Texture2D;
Animator animator = Resources.Load("GameObject") as Animator;
}
}
참고할만한 글
반응형