コード例 #1
0
    public T GetComponent <T>(string path) where T : ComponentBase
    {
        GameObject prefab = this.GetPrefab(path);

        return(TransUtils.InstantiateTransform(prefab.transform, this.m_Transform, LayerMask.LayerToName(prefab.layer)).GetComponent <T>());
    }