/// <summary>Constructor. Used to setup colors and also the container if any.</summary> /// <param name="baseColor">The color of filling. All other colors are deduced from it.</param> /// <param name="container">The HierarchicalSphere containing this sphere. If null, the sphere will not be limited in size.</param> public HierarchicalSphere(Color baseColor, HierarchicalSphere container = null) { m_Container = container; m_Sphere = Resources.GetBuiltinResource <Mesh>("New-Sphere.fbx"); m_Material = new Material(Shader.Find("Hidden/UnlitTransparentColored")); this.baseColor = baseColor; }
/// <summary>Constructor. Used to setup colors and also the container if any.</summary> /// <param name="baseColor">The color of filling. All other colors are deduced from it.</param> /// <param name="parent">The HierarchicalSphere containing this sphere. If null, the sphere will not be limited in size.</param> public HierarchicalSphere(Color baseColor, HierarchicalSphere parent = null) { m_Parent = parent; m_Material = new Material(k_Material); this.baseColor = baseColor; }