Skip to content

Latest commit

 

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UnityGameSnippets

Here the unity game engine scripts that I made
Can be updated sometimes. You are should import the .cs files into an your new unity game editor project to try those
Please create issue, if something messed out in the code.
Are you wanna to add the script in this repository? Make a pull request please, thank you, and i will reply when i had to get online in github.
Did you liked it? ⭐ Do not forget to star this repository! ⭐

Repository Tree

Effects folder contains:

  1. RandomColor.cs - random color for material by seed and keyword on the shader. Requires MeshRenderer to use it.
  2. SimpleBillboard.cs - Effect, which make object turn to the main camera object.

Utilities folder contains:

  1. Spawner.cs - the spawner script.
  2. ResetCoordsWhenFarAway.cs - If target is set and exced range, the rotation and position would be reset repeatedly.
  3. ProceduralLookAt.cs - If target is set and not exced range, the object turns to the target.
  4. RigidbodyVelocityClamp.cs - Limit velocity to the object's physics. Requires Rigidbody to use it.

More scripts are will be coming soon with yours uploaded using your own pull requests!