Coding Task: Beginner Scripting: Scripts as Behaviour Components

 Coding Task Beginner Scripting, scripts as behaviour components

This unity video went through the pair basics of adding code or scripts to make it have a certain characteristic or for it to do a certain action. For example in the video tutorial a rigid body was added to a floating object and as the user hit play the object fell to the ground. The rigid body essentially added gravity and weight to the object so it was not able to float. The tutorial also showed how scripts can be used to change the default colour or layer on the object. This can be used to have it when the user presses a certain key the colour of the object will change for example when the r key is pressed the colour changes to red and when the g key is pressed it changes to green.

Comments

Popular Posts