Example #1
0
        private void Init()
        {
            G_IntString.Init(-80, 0);   // dB range

            m_graphyManager = transform.root.GetComponentInChildren <GraphyManager>();

            m_audioMonitor = GetComponent <G_AudioMonitor>();

            UpdateParameters();
        }
Example #2
0
        private void Init()
        {
            m_graphyManager = transform.root.GetComponentInChildren <GraphyManager>();

            m_rectTransform = GetComponent <RectTransform>();

            m_audioGraph   = GetComponent <G_AudioGraph>();
            m_audioMonitor = GetComponent <G_AudioMonitor>();
            m_audioText    = GetComponent <G_AudioText>();

            foreach (Transform child in transform)
            {
                if (child.parent == transform)
                {
                    m_childrenGameObjects.Add(child.gameObject);
                }
            }
        }
Example #3
0
 private void OnEnable()
 {
     /* ----- NOTE: ----------------------------
      * We used to Init() here regardless of
      * whether this module was enabled.
      * The reason we don't Init() here
      * anymore is that some users are on
      * platforms that do not support the arrays
      * in the Shaders.
      *
      * See: https://github.com/Tayx94/graphy/issues/17
      *
      * Even though we don't Init() competely
      * here anymore, we still need
      * m_audioMonitor for in Update()
      * --------------------------------------*/
     m_audioMonitor = GetComponent <G_AudioMonitor>();
 }
Example #4
0
        private void Init()
        {
            m_graphyManager = transform.root.GetComponentInChildren <GraphyManager>();

            m_audioMonitor = GetComponent <G_AudioMonitor>();

            m_shaderGraph = new G_GraphShader
            {
                Image = m_imageGraph
            };

            m_shaderGraphHighestValues = new G_GraphShader
            {
                Image = m_imageGraphHighestValues
            };

            UpdateParameters();
        }
Example #5
0
        private void Init()
        {
            //TODO: Replace this with one activated from the core and figure out the min value.
            if (!G_FloatString.Inited || G_FloatString.MinValue > -1000f || G_FloatString.MaxValue < 16384f)
            {
                G_FloatString.Init
                (
                    minNegativeValue: -1001f,
                    maxPositiveValue: 16386f
                );
            }

            m_graphyManager = transform.root.GetComponentInChildren <GraphyManager>();

            m_audioMonitor = GetComponent <G_AudioMonitor>();

            UpdateParameters();
        }