Unity Scripting Tutorial : Call C# Script from GameObject

Published: 08 November 2018
on channel: Jayanam
8,828
159

In this Unity 2018 tutorial I show how to call a method of a C# script (Monobehavior) from anoather game object's script.

As an example I use the game object that we created with Blender 2.8 that has a blue material assigned.

I will add a script to this object with a method called ChangeColor that we call from a second script that is attached to another game object.

I call this when the other game object (a sphere) collides with the floor.

See my social profiles here
G+: https://plus.google.com/+JayAnAm
Twitter:   / jayanamgames  
Facebook:   / jayanamgames  
Patreon:   / jayanam  

Production Music courtesy of Epidemic Sound: http://www.epidemicsound.com


Watch video Unity Scripting Tutorial : Call C# Script from GameObject online without registration, duration hours minute second in high quality. This video was added by user Jayanam 08 November 2018, don't forget to share it with your friends and acquaintances, it has been viewed on our site 8,828 once and liked it 159 people.