Question by 
               nedimdmir · Jul 07, 2020 at 11:56 AM · 
                c#instantiateprefabselectioncolor change  
              
 
              If instantiate prefab is selected how can i change the color?
I created a panel and inside i add Grid Layout. I Instantiate prefabs in this panel when start and add this prefabs onClick function with a method. I wanna change the color when prefab is selected but i dont know which is which. How do i do that?
               Comment
              
 
               
              Answer by nedimdmir · Jul 07, 2020 at 12:02 PM
 public void basildi()
     {    
         this.GetComponent<UnityEngine.UI.Image>().color=new Color(0,0,255);
     }
ı wanna change the color when clon is selected. Inside this method.
Your answer
 
 
             Follow this Question
Related Questions
Instantiate and destroy an object with the same key 1 Answer
How do I destroy a instantiated UI image that is a prefab but pushed the canvas? 0 Answers
instantiated prefab doesn't follow spawn rotation 1 Answer
possible to ping project asset on log click ? 0 Answers
Instantiating prefabs from an array of GameObjects 3 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                