private void OnGUI()
        {
            targets = HedraContextTools.GetSelectionTargets(targetOption);
            RegisterObjects();

            EditorGUI.BeginChangeCheck();
            ShowMainGUI();
            EditorGUI.EndChangeCheck();
        }
Example #2
0
        private void StoreSelection()
        {
            List <GameObject> selection = HedraContextTools.GetSelectionTargets(targetOption);

            targets = new List <MeshRenderer>();
            for (int i = 0; i < selection.Count; i++)
            {
                MeshRenderer renderer = selection[i].GetComponent <MeshRenderer>();
                if (renderer != null)
                {
                    targets.Add(renderer);
                }
            }
        }