- Home /
 
               Question by 
               Noxury · Feb 12, 2018 at 02:38 AM · 
                coloreventspriterenderer  
              
 
              Changing SpriteRenderer color with UnityEvent.Event
I want to set a color from an spriteRenderer-object by using UnityEvent in the inspector, however there is no color property in the dropdown menu of the target Sprite.
 public UnityEvent OnActivated;
 public bool activated;
 void Update(){
     if(!activated && Input.GetButtonDown("Fire1")){
         activated = true;
         OnActivated.Invoke();
     }
 }
               Comment
              
 
               
              Answer by Meguia · Feb 12, 2018 at 06:34 AM
[UPDATED]
 Hi @Noxury 
Maybe you are looking for something like this:
https://assetstore.unity.com/packages/tools/integration/event-delegate-system-68785
The link is dead and why would an asset called "military tank" help me further?
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                