/// <summary> /// 通过父物体名称获取父物体对象 /// </summary> /// <param name="parentName"></param> /// <returns></returns> public Transform GetParnetTrans(ParentName parentName) { Transform parnet = null; _parentDic.TryGetValue(parentName.ToString(), out parnet); return(parnet); }
private void Awake() { if (Application.isEditor && !alreadyPlaced) { transform.parent = GameObject.Find(parentName.ToString()).transform; alreadyPlaced = true; } }
public Transform GetParentTrans(ParentName parentName) { Transform parent; _parentName.TryGetValue(parentName.ToString(), out parent); _parentName.UtilDebugLogNull(); return(parent); }
public override string ToString() { return(Name.ToString() + ", " + ParentName.ToString() + ", " + ContentFlags.ToString() + ", " + streamingExtentsMin.ToString() + ", " + streamingExtentsMax.ToString() + ", " + entitiesExtentsMin.ToString() + ", " + entitiesExtentsMax.ToString());// + ", " + }