Skip to content

Instantly share code, notes, and snippets.

@demonixis
Created September 30, 2014 06:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save demonixis/5f14eff4d1a9aecda7bb to your computer and use it in GitHub Desktop.
Save demonixis/5f14eff4d1a9aecda7bb to your computer and use it in GitHub Desktop.
[Unity3D] A script that show a spawn point in the editor.
using UnityEngine;
using System.Collections;
public class SpawnPoint : MonoBehaviour
{
public Color color = new Color(0.0f, 0.8f, 0.8f, 0.3f);
void OnDrawGizmos()
{
Gizmos.color = color;
Gizmos.DrawCube(transform.position, transform.localScale);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment