예제 #1
0
        protected override void OnEnable()
        {
            base.OnEnable();

            targetScatterplot       = (ScatterplotVisualisation)serializedObject.targetObject;
            colourPaletteProperty   = serializedObject.FindProperty("<ColourPalette>k__BackingField");
            colourPaletteByProperty = serializedObject.FindProperty("<ColourPaletteBy>k__BackingField");
        }
예제 #2
0
        public ScatterplotVisualisation CreateScatterplot()
        {
            GameObject holder = new GameObject("ScatterplotVisualisation");

            holder.transform.parent        = transform;
            holder.transform.localPosition = Vector3.zero;
            holder.transform.localRotation = Quaternion.identity;

            ScatterplotVisualisation scatterplot = holder.AddComponent <ScatterplotVisualisation>();

            SubVisualisations.Add(scatterplot);
            scatterplot.TransferProperties(this);
            scatterplot.CreateView(this);
            return(scatterplot);
        }