예제 #1
0
    void Load(string name)
    {
        var path = AssetsUtil.GetAssetPath(name);//"TestPrefab");

        m_Mgr.Load(path, (handle) =>
        {
            var m_testPrefab = handle.Instantiate();
            //m_testPrefab.transform.parent = panel.transform;
            m_testPrefab.transform.localPosition = Vector3.zero;
            m_testPrefab.transform.localScale    = Vector3.one;
        });
    }
예제 #2
0
 string GetAssetPath(string name)
 {
     return(AssetsUtil.GetAssetPath(name));
 }