This Unity tutorial shows how to change the material of a game object on collision. Here we decide what material to use with a collision by checking the tag of the collided game object using CompareTag().
Upgrades to Stick and DragAndShoot behavior.
This video can work as a stand-alone as well for understanding how to create a material change logic in Unity.
0:00 Introduction & Demo
0:41 New Materials&Script
0:59 Project Modifications
1:30 DragandShoot Modification
2:04 Stick Modification
3:56 MaterialChanger Behavior
6:56 Outro
7:12 Future Plans
Script for MaterialChanger behavior:
https://gist.github.com/seferciogluec...
Videos Of Drag&Shoot Series:
Drag&Shoot Tutorial
• How To Drag And Shoot 3D Objects in U...
Create a Spawner Tutorial
• How To Spawn 3D Objects in Unity | Cr...
Make Spawn Stick Tutorial
• How To Stop RigidBody On Collision in...
Change Spawn Material Tutorial
• How To Change Material On Collision i...
Stand Alone Automatic Shooter
• How To Create Auto Shooter In Unity |...
#materialChange #unityTutorial #collision
If you want to see more of this kind of videos, likes and subscriptions are a way to show it. Comments are always welcomed.
I hope this will help you and if there was a point not clear let me know in the comments.
Here are some written tutorials https://devsplorer.wordpress.com/
I generally Tweet sneak peeks to mechanics: / eccegd
Also, If you would give feedback on the overall performance of the video you would make me very happy. I plan to make more videos and want to improve along the way and each feedback is very valuable.
Thanks for reading up to this point and see you in the next explorations :)
Have a great day!