void OnDrawGizmosSelected() { if (this.enabled && Selection.activeGameObject == this.gameObject) { if (!this._PlotRandomSeries && !this._RetainLastPlot) { this.Clean(); } if (this._Values == null || this._Values.Length == 0 || this.always_random_sample_new) { if (this._PlotRandomSeries) { this.Clean(); var vs = PlotFunctions.SampleRandomSeries(9); this._Values = vs.Select(v => v._Val).ToArray(); this.PlotSeries(vs); } } } else { this.Clean(); } }
void OnDrawGizmos() { if (this.enabled) { if (this._PlotRandomSeries) { this.PlotSeries(PlotFunctions.SampleRandomSeries(1)); } } }
void OnDrawGizmos() { if (this.enabled) { if (this.enabled) { if (this._plot_random_series) { this.ScatterPlot(PlotFunctions.SampleRandomSeries(1)); } } }
/*public override void PlotSeries(float[] points) { * * }*/ #if UNITY_EDITOR void OnDrawGizmos() { if (this.enabled) { if (this._Values == null || this._Values.Length == 0) { if (this._PlotRandomSeries) { var vs = PlotFunctions.SampleRandomSeries(9); this._Values = vs.Select(v => v._Val).ToArray(); this.PlotSeries(vs); } } } }