fix imports, get rid of unused tooltips and unused private prev tracking vars

This commit is contained in:
Xevion
2020-05-06 13:38:17 -05:00
parent 40af3d68bf
commit 4867978302
2 changed files with 2 additions and 19 deletions

View File

@@ -10,27 +10,13 @@ public enum SamplingTypes {
public class PointRendering : MonoBehaviour { public class PointRendering : MonoBehaviour {
public String seed = ""; public String seed = "";
[Tooltip("The sampling method used to generate points")]
public SamplingTypes samplingMethod = SamplingTypes.Random; public SamplingTypes samplingMethod = SamplingTypes.Random;
[Tooltip("The number of points (spheres) placed inside the region")]
public int numPoints = 100; public int numPoints = 100;
[Tooltip("The size of the rendered spheres")]
public float sphereSize = 1; public float sphereSize = 1;
[Tooltip("The Size of the region points are generated in")]
public Vector2 regionSize = Vector2.one; public Vector2 regionSize = Vector2.one;
[Tooltip("The radius between each point in Poisson disc sampling")]
public float radius = 3; public float radius = 3;
[Tooltip("The number of attempts the sampling algorithm will give to place another point")]
public int retryAttempts = 30; public int retryAttempts = 30;
[Tooltip("Draw a wireframe sphere showing the radius between each sphere.")] public bool drawSphere;
public bool drawSphere = false;
// Store the previous value, only useful for the inspector
private SamplingTypes _samplingMethod;
private int _prevNumPoints;
private Vector2 _prevRegionSize;
private float _radius;
private int _retryAttempts;
public List<Vector2> points; public List<Vector2> points;

View File

@@ -1,7 +1,4 @@
using System; using UnityEditor;
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine; using UnityEngine;
// The Point Rendering Editor must allow simple and easy adjustments of the points // The Point Rendering Editor must allow simple and easy adjustments of the points