From 48679783028939572ab43e7c7d16f259f692fe20 Mon Sep 17 00:00:00 2001 From: Xevion Date: Wed, 6 May 2020 13:38:17 -0500 Subject: [PATCH] fix imports, get rid of unused tooltips and unused private prev tracking vars --- procedural-placement/Assets/PointRendering.cs | 16 +--------------- procedural-placement/Assets/SamplingEditor.cs | 5 +---- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/procedural-placement/Assets/PointRendering.cs b/procedural-placement/Assets/PointRendering.cs index d1eeecd..24407b2 100644 --- a/procedural-placement/Assets/PointRendering.cs +++ b/procedural-placement/Assets/PointRendering.cs @@ -10,27 +10,13 @@ public enum SamplingTypes { public class PointRendering : MonoBehaviour { public String seed = ""; - [Tooltip("The sampling method used to generate points")] public SamplingTypes samplingMethod = SamplingTypes.Random; - [Tooltip("The number of points (spheres) placed inside the region")] public int numPoints = 100; - [Tooltip("The size of the rendered spheres")] public float sphereSize = 1; - [Tooltip("The Size of the region points are generated in")] public Vector2 regionSize = Vector2.one; - [Tooltip("The radius between each point in Poisson disc sampling")] public float radius = 3; - [Tooltip("The number of attempts the sampling algorithm will give to place another point")] public int retryAttempts = 30; - [Tooltip("Draw a wireframe sphere showing the radius between each sphere.")] - 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 bool drawSphere; public List points; diff --git a/procedural-placement/Assets/SamplingEditor.cs b/procedural-placement/Assets/SamplingEditor.cs index 3a3d65d..76b2c42 100644 --- a/procedural-placement/Assets/SamplingEditor.cs +++ b/procedural-placement/Assets/SamplingEditor.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEditor; +using UnityEditor; using UnityEngine; // The Point Rendering Editor must allow simple and easy adjustments of the points