コード例 #1
0
 /// Draw the points in points array. All selected points will be drawn blue, for unselected,
 /// points.GetColor will be called to get the color of each point
 public static void Draw(IEditablePoint points, Transform cloudTransform, List <int> selection, bool twoPassDrawing)
 {
     LightProbeVisualization.DrawPointCloud(
         points.GetUnselectedPositions(),
         points.GetSelectedPositions(),
         points.GetDefaultColor(),
         points.GetSelectedColor(),
         points.GetPointScale(),
         cloudTransform);
 }
コード例 #2
0
 public static void Draw(IEditablePoint points, Transform cloudTransform, List<int> selection, bool twoPassDrawing)
 {
   LightmapVisualization.DrawPointCloud(points.GetUnselectedPositions(), points.GetSelectedPositions(), points.GetDefaultColor(), points.GetSelectedColor(), points.GetPointScale(), cloudTransform);
 }
コード例 #3
0
    public static void Draw(IEditablePoint points, Transform cloudTransform, List <int> selection, bool twoPassDrawing)
    {
        Type t = typeof(Lightmapping).Assembly.GetType("UnityEditor.LightProbeVisualization");
        var  m = t.GetMethod("DrawPointCloud", BindingFlags.Static | BindingFlags.NonPublic);

        m.Invoke(null, new object[]
        {
            points.GetUnselectedPositions(), points.GetSelectedPositions(), points.GetDefaultColor(), points.GetSelectedColor(), points.GetPointScale(), cloudTransform
        });
    }