Created
March 27, 2016 07:18
-
-
Save unitycoder/5912377455c4b8fb641d to your computer and use it in GitHub Desktop.
Custom Point Helper Gizmo : Use as Spawn point, without adding empty gameobjects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| public class CustomPoint : MonoBehaviour | |
| { | |
| public Vector3 offset = Vector2.zero; | |
| public float radius = 0.05f; | |
| void OnDrawGizmosSelected() | |
| { | |
| Gizmos.color = Color.red; | |
| Gizmos.DrawWireSphere(transform.position + offset, radius); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment