C# I'm a beginner.
What you want to do is
Click any 3D object → Delete button is displayed.
Click Delete Button → The 3D object is deleted.
That's what it is.
Unity has EventTrigger configuration for 3D objects and buttons.
Currently, when you click on a 3D object, a button appears and the value of the 3D object is retrieved.
I would like to use the value of the 3D object in the next method to delete it.
Thank you for your cooperation.
I feel that the variable name defined in the method could only be used in that method.Therefore, you may want to define the variable name in the field first.
© 2022 OneMinuteCode. All rights reserved.