Answers for "How do i destroy a prefab without the error?"

C#
1

How do i destroy a prefab without the error?

//You could try making a copy

public GameObject example;


GameObject exampleCopy = example
Instantiate(exampleCopy, //wherever you want)
Destroy(exampleCopy)
Posted by: Guest on February-16-2020

Code answers related to "How do i destroy a prefab without the error?"

C# Answers by Framework

Browse Popular Code Answers by Language