private void RenderPoints(Options options) { var arguments = DeserializeArguments <PointRenderingArguments>(options.ConfigurationFilepath); var renderer = new PointRenderer(arguments.InputDirectory, arguments.InputFilePattern, arguments.Resolution.Width, arguments.Resolution.Height); renderer.Render(arguments.OutputDirectory, arguments.OutputFilename); }
void Start() { GameObject tempObject = GameObject.Find("Canvas"); if (tempObject != null) { canvas = tempObject.GetComponent <Canvas>(); } foreach (Transform child in canvas.transform) { textInfoObjects.Add(child.gameObject); } animHostScript = GameObject.Find("Animal").GetComponent <AnimalHost>(); pointRenderer = GameObject.Find("LineRenderer").GetComponent <PointRenderer>(); zoonoseScript = GameObject.Find("Zoonose2").GetComponent <Zoonose2>(); zoonoses = zoonoseScript._viruses; mat01 = Resources.Load("mat01", typeof(Material)) as Material; mat02 = Resources.Load("mat02", typeof(Material)) as Material; textObject.SetActive(true); //meshRend = animHostScript.animalList }
// Update is called once per frame void Update() { if (!CheckReady()) { return; } PointRenderer.Update(); }
// Update is called once per frame void Update() { if (!CheckReady()) { return; } PointRenderer.Update(); DrawDebugInfo(); }
// Update is called once per frame void Update() { if (!CheckReady()) { return; } PointRenderer.Update(); this.pointCount = this.GetPointCount(); }
public void Restart() { Debug.Log("Restarting"); if (PointRenderer != null) { // if(((V2Renderer)PointRenderer).shuttingDown){ // Debug.Log("Calling restart"); // } PointRenderer.ShutDown(); ((V2Renderer)PointRenderer).Restart(); } }
public override void OnInspectorGUI() { PointRenderer target = (PointRenderer)this.target; DrawDefaultInspector(); if (GUILayout.Button("Add")) { target.Add(); UnityEditor.SceneView.RepaintAll(); } if (GUILayout.Button("Clear")) { target.Clear(); UnityEditor.SceneView.RepaintAll(); } }
public void Shutdown() { Debug.Log("Shutting down"); PointRenderer.ShutDown(); }