예제 #1
0
        protected void inputProfileChanged()
        {
            if (!loadOutputMetaData())
            {
                return;
            }

            // Instantiate Output profile
            OutputProfile = BaseSystem.Activator.CreateInstance(outputProfiles[outputProfileSelection].Type) as OutputProfile;
            OutputProfile.Initialize();

            // Load the subset of mapping profiles for the selected Input and Output Profiles. Then load the mapper.
            loadMappingProfiles();
        }
예제 #2
0
        public void DrawOutputSettings()
        {
            if (outputProfiles.Count == 0 || InputProfile.InputSkeleton == InputSkeletonType.None)
            {
                EditorGUILayout.HelpBox("Please select session data first.", MessageType.Info);
            }
            else
            {
                EditorGUILayout.BeginHorizontal();

                GUIContent[] content = new GUIContent[outputProfiles.Count];
                for (int i = 0; i < outputProfiles.Count; i++)
                {
                    content[i] = new GUIContent(outputProfiles[i].Label);
                }

                int tempOutputSelection = EditorGUILayout.Popup(new GUIContent("Skeleton"), outputProfileSelection, content);

                if (tempOutputSelection != outputProfileSelection || OutputProfile == null)
                {
                    outputProfileSelection = tempOutputSelection;

                    OutputProfile = BaseSystem.Activator.CreateInstance(outputProfiles[outputProfileSelection].Type) as OutputProfile;
                    OutputProfile.Initialize();

                    loadMappingProfiles();
                }
                if (GUILayout.Button("GEN", EditorStyles.miniButton, GUILayout.Width(40f)))
                {
                    createModelPreview();
                }
                EditorGUILayout.EndHorizontal();

                if (OutputProfile != null)
                {
                    OutputProfile.DrawOutputSettings();
                }
            }
        }