mirror of
https://github.com/Xevion/procedural-placement.git
synced 2025-12-06 01:15:56 -06:00
fix imports, get rid of unused tooltips and unused private prev tracking vars
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user