Skip to content

Instantly share code, notes, and snippets.

@unitycoder
Created March 27, 2016 07:18
Show Gist options
  • Select an option

  • Save unitycoder/5912377455c4b8fb641d to your computer and use it in GitHub Desktop.

Select an option

Save unitycoder/5912377455c4b8fb641d to your computer and use it in GitHub Desktop.
Custom Point Helper Gizmo : Use as Spawn point, without adding empty gameobjects
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