Answers for "delete all clones unity"

C#
0

delete all clones unity

var clones = GameObject.FindGameObjectsWithTag ("tag");    
foreach (var clone in clones) {
		Destroy(clone);
    }
Posted by: Guest on August-11-2020
0

how to destroy clones in unity c#

GameObject cardClone = Instantiate (Cards [i], new Vector3 (xVal, yVal, zVal), transform.rotation) as GameObject;         Destroy(cardClone);
Posted by: Guest on July-08-2020

C# Answers by Framework

Browse Popular Code Answers by Language