Beispiel #1
0
        public override void OnGUI(ModuleMaker maker)
        {
            WindowDesignUtility.SectionLabel("Surfaces");

            EditorGUILayout.BeginHorizontal();
            this.template = (ProjectorTemplate)EditorGUILayout.EnumPopup("Template", this.template);
            TemplateToSelection();

            using (new EditorGUI.DisabledScope(this.template != ProjectorTemplate.Custom))
                this.selection = (ProjectorSelection)EditorGUILayout.EnumFlagsField(this.selection);

            EditorGUILayout.EndHorizontal();

            EditorGUILayout.Separator();

            WindowDesignUtility.SectionLabel("Rendering");

            this.target = (CameraTarget)EditorGUILayout.EnumPopup("Camera Target", this.target);

            EditorGUILayout.Separator();

            WindowDesignUtility.SectionLabel("Dimensions");

            bool wideMode = EditorGUIUtility.wideMode;

            EditorGUIUtility.wideMode = true;

            this.width    = EditorGUILayout.FloatField("Width (m)", this.width);
            this.height   = EditorGUILayout.FloatField("Height (m)", this.height);
            this.length   = EditorGUILayout.FloatField("Length (m)", this.length);
            this.position = EditorGUILayout.Vector3Field("Position", this.position);

            EditorGUIUtility.wideMode = wideMode;
        }
Beispiel #2
0
 public ProjectorModule()
 {
     this.template  = ProjectorTemplate.Basic;
     this.selection = (ProjectorSelection)0;
     this.width     = 3f;
     this.height    = 2.45f;
     this.length    = 3f;
     this.position  = SceneCameraRay();
 }