Skip to content

Instantly share code, notes, and snippets.

@tsubaki
Last active January 11, 2016 09:52
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 tsubaki/f71e898cf37b9fb9e16f to your computer and use it in GitHub Desktop.
Save tsubaki/f71e898cf37b9fb9e16f to your computer and use it in GitHub Desktop.
カリンググループのサンプルコードその1
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