Category: Unity

Category: Unity

New tutorial on the Weekly Coder Channel. Check it out. Assets are available for download below.


Category: Unity

So I’ve decided to start a new tutorial series on how to create a Pac-Man Clone in Unity 5.5. The tutorial like all others can be viewed on the Weekly Coder YouTube channel. You can click the link below to watch.

Be sure to stop by weekly for new videos in the series.

 

Below are the assets available for download.


Category: Unity

Category : Full Script , Shader , Unity

Here’s a great shader I found for giving a material scanlines. It creates a very cool retro tv effect. Forgive me I don’t have a source link, I couldn’t find it again. So a special thanks to whoever did write it, if you’re out there, leave a comment or if anyone finds the original link, it was part of a Unity Answers thread, post a comment. Anyway, here’s the shader, use it, enjoy!

 

 


Category: Unity

Category : Full Script , Shader , Unity

Here’s a shader we wrote to add the color property to the Unity Alpha Blended Shader under Mobile/Particles/Alpha Blended.

 


Category: Unity

Great little script for Unity that makes a LineRenderer component shape into a circle or ellipse, given the number of line segments along with x and y radius.

Script by MarkPixel. Original thread here. Full Script Below.

Read More

Category: Unity

Earlier today I stumbled upon a perfect little script for extracting audio data from an audiosource component in unity. It does all the calculation for getting the RMS value, the decibels, and frequency.

This script can easily be applied to make things behave to the music being played in the Audiosource component. Like making an object bounce or move back and forth with the music.

Thanks to Aldonaletto from this Unity Answers post for making this one and explaining it so well. Script below.

Read More

Category: Unity

Category : C# , Unity

So… you’ve got a useful method that does some pretty cool stuff but you don’t know where to put it. You’ve probably labeled this in your mind as a helper method which can be easily defined as a method that specifically aids in one or more repetitive tasks.

Great you say.. lets just create a new C# script and call it HelperMethods and throw it in there. This is not a bad idea and honestly I used to do this a lot myself but… there is a more elegant approach to this.

What if there was a way that you could add functionality to an already existing class? What if for instance you wrote a method which could easily be part of the Random class that is part of the UnityEngine?

This is actually exactly what I did. I wrote a method that returns not just a random range between min and max values but found that I needed to return a random number with specific numbers being excluded between the min and max values.

This is a perfect example of a method that should be an extension method to the Random class. So how do we do it? Its actually really simple. First know that we can place all of our extension methods within one simple class. Lets call this class ExtensionMethods.

Read More

Category: Unity

Category : 2D , C# , Full Script , Game Development , Unity

While working in Unity I found it difficult to figure out how to get an object to rotate. If you’re reading this, you probably did too. Right now I’m just talking about 2D game object rotation. The concept works in 3D as well, just turn on a different axis, but I won’t go into that here.

If you don’t feel like reading the article and just want the Full Script… skip to the bottom.

Add this to the property section of your class:

This will be the variable that tells the script how fast to rotate around the axis. It’s in degrees per second. Feel free to play with the number as see how it affects the rotation speed.

Read More

Show Some Love

Support The Weekly Coder on Patreon!

WeeklyCoderTV

Recent Popular Info

About:
This channel is all about coding. We will mostly post tutorials on making games with Unity 5 and above. Other posts will include tutorials on specific game mechanics and whatever else we feel like talking about.

Don't be shy.. If you have a question, leave a comment. If you you'd like to see a specific tutorial feel free to request it. If we think its worthwhile, then we may just do it.

Please don't forget to click the like button and remember to subscribe. Feel free to support our channel and the awesome content we create.

Total subscribers:
767

Total uploads:
71

Total upload views:
89.1 thousand

Follow me on Twitter

Subscribe

RSS Feed

Blog Authors