Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
カリンググループのサンプルコードその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
You can’t perform that action at this time.