コード例 #1
0
ファイル: Displayer.cs プロジェクト: PotaninMarat/droid
        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();
            }
        }
コード例 #2
0
 void OnDrawGizmos()
 {
     if (this.enabled)
     {
         if (this._PlotRandomSeries)
         {
             this.PlotSeries(PlotFunctions.SampleRandomSeries(1));
         }
     }
 }
コード例 #3
0
 void OnDrawGizmos()
 {
     if (this.enabled)
     {
         if (this.enabled)
         {
             if (this._plot_random_series)
             {
                 this.ScatterPlot(PlotFunctions.SampleRandomSeries(1));
             }
         }
     }
コード例 #4
0
        /*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);
                    }
                }
            }
        }