翼狐Uniry次世代魔幻游戏特效训练营
private const string ClickEffectName = "dianji";
private GameObject GetEffectFromPool()
{
GameObject gg = null;
int childCount = effectParent.childCount;
for(int i =0;i< childCount;i++)
{
Transform tf = effectParent.GetChild(i);
if (tf.name.Equals(ClickEffectName) && !tf.gameObject.activeInHierarchy)
{
return tf.gameObject;
}
}
return gg;
}
public void PlayUIClickEffect(Vector3 v3)