Skip to main content

Posts

Showing posts with the label Shaders

Use of Raycast to determine certain game objects ?

Raycast can be use in many fire like : There are many raycast type but these two are most that i used. 1.Physics.Raycast               Player shooting/Fire 2.Physics.SphereCast         Detect A object to Apply force due to explosion effect. Simple Physics Raycast as shown below :    RaycastHit hit;   Ray ray;    void Update ()     {         if ( Input .GetMouseButton(0))         {             ray = Camera .main.ScreenPointToRay( Input. mousePosition);               if ( Physics .Raycast(ray, out hit))             {                 Debug .Log( "Ray cast hit too " + hit.collider.gameObject.name);             }         }  }

Recommended Assets For Your Unity Project.

1 .Toony Colors Pro 2 Toony Colors Pro 2 is a collection of stylized shaders and tools, with an emphasis on ease of use and flexibility. Making your Unity game stylized has never been so easy! Source code is fully included! Link To Asset :  Toony Color Pro 2 2 .Joystick Pack It is Free. The joystick pack contains multiple different virtual joysticks which can be easily used in your projects with a simple drag and drop. The pack also comes with 18 background and 6 handle sprites allowing for lots of customization or you can use your own. Link To Assets :  Joystick Pack 3 .iTween It is Free. More "wow" for a lot less "ow". iTween is a simple, powerful and easy to use animation system for Unity. Focusing on the established solutions and frameworks of projects such as TweenLite, Tweener, and other Flash-based tweening and interpolation systems, iTween is a battle-tested solution for streamlining production in the Unity environment. Link To Asset :  ITween 4 .LeanTween I...