Created
September 30, 2014 06:24
-
-
Save demonixis/5f14eff4d1a9aecda7bb to your computer and use it in GitHub Desktop.
[Unity3D] A script that show a spawn point in the editor.
This file contains 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; | |
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