How to Move an Image to an other Panel
Example:
-Panel1
-->Image1
-->Image2
-Panel2
How do I move the Images into the Panel2 via C# Script? I just need an example.
Comment
Answer by Tourist · Nov 04, 2016 at 09:43 AM
Change the image's transform parent by using myImage.transform.SetParent(panel2Transform). Look at SetParent in the scripting API for more details and set the local values of the image's transform after the call if needed.
Your answer
Follow this Question
Related Questions
Import Image then get all Pixels 0 Answers
Making an image appear 0 Answers
Saving an image's state 2 Answers
Button calls itself numerous times 0 Answers
A way to make the player get punished when standing still? 0 Answers