Last active
January 11, 2016 09:52
-
-
Save tsubaki/f71e898cf37b9fb9e16f to your computer and use it in GitHub Desktop.
カリンググループのサンプルコードその1
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; | |
using UnityEngine.SceneManagement; | |
public class CullingGroupSpawn : MonoBehaviour | |
{ | |
[SerializeField] Transform[] positions; | |
void OnDrawGizmos () | |
{ | |
#if UNITY_EDITOR | |
UnityEditor.Handles.color = Color.red; | |
foreach (var pos in positions) { | |
UnityEditor.Handles.CircleCap( | |
0, pos.position, | |
UnityEditor.SceneView.currentDrawingSceneView.camera.transform.rotation, | |
pos.localScale.magnitude); | |
} | |
#endif | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment