浏览代码

changed naming

/4.1
Shan Jiang 4 年前
当前提交
909c0fd6
共有 1 个文件被更改,包括 8 次插入8 次删除
  1. 16
      Assets/Scenes/ImageTracking/Multi Prefab - Image Tracking/MultiTrackedImageInfoManager.cs

16
Assets/Scenes/ImageTracking/Multi Prefab - Image Tracking/MultiTrackedImageInfoManager.cs


public struct NamedPrefab
{
[SerializeField]
string m_PrefabName;
string m_ImageName;
public string prefabName
public string imageName
get => m_PrefabName;
set => m_PrefabName = value;
get => m_ImageName;
set => m_ImageName = value;
}
public GameObject prefab

}
public NamedPrefab(string prefabName, GameObject prefab)
public NamedPrefab(string imageName, GameObject prefab)
m_PrefabName = prefabName;
m_ImageName = imageName;
m_Prefab = prefab;
}
}

for (int i = 0; i < prefabList.Count; i++)
{
m_PrefabsDictionary.Add(prefabList[i].prefabName, prefabList[i].prefab);
m_PrefabsDictionary.Add(prefabList[i].imageName, prefabList[i].prefab);
}
}

for (int i = 0; i < m_PrefabList.Count; i++)
{
var pref = m_PrefabList[i];
pref.prefabName = m_ImageLibrary[i].name;
pref.imageName = m_ImageLibrary[i].name;
m_PrefabList[i] = pref;
}
}

正在加载...
取消
保存