public void CreateVisualization(NeuralNetworkContainer networkContainer)//, Vector3 position, Vector3 rotation, float size) { if (!m_visualize) { return; } m_isDestroyed = false; m_manager = NeuralNetworkVisualizationManager.Instance(); m_network = networkContainer.m_network; m_layerCount = m_network.m_layerCount; m_cameraCanvasSize.y = m_height; m_cameraCanvasSize.x = m_width;// m_cameraCanvasSize.y * Statics.GetMainCamera().aspect; CreateObjects(); PositionObjects(); UpdateVisualizationNetwork(); m_parentTransform.position = m_parentTransform.parent.transform.position; m_parentTransform.position += m_relativePosition; m_parentTransform.rotation = m_parentTransform.parent.transform.rotation; m_parentTransform.Rotate(m_relativeRotation); }
private void Awake() { if (s_instance != null) { Debug.Log("Warning: More than one instance of NeuralNetworkVisualizationManager is active!"); } s_instance = this; }