public void Init(FoliagePainter painter, OnExtractDetailsPressed extract)
        {
            m_Painter  = painter;
            m_Callback = extract;

            m_TypesRuntime = m_Painter.GetFoliageTypesRuntime();
        }
Esempio n. 2
0
        protected override bool DrawWizardGUI()
        {
            EditorGUILayout.LabelField("Objects to extract: ");

            m_Types = m_Painter.GetFoliageTypesRuntime();

            if (m_Extracting == null || m_Extracting.Length != m_Types.Count)
            {
                m_Extracting = new bool[m_Types.Count];
            }

            using (new ScopedLayout(() => { EditorGUILayout.BeginVertical("Box"); }, EBeginMode.BEGIN_VERTICAL))
            {
                for (int i = 0; i < m_Types.Count; i++)
                {
                    m_Extracting[i] = GUILayout.Toggle(m_Extracting[i], m_Types[i].m_Name);
                }
            }

            return(false);
        }