예제 #1
0
 static TurtleGUI()
 {
     horizontal = new HorizontalBlock();
     vertical = new VerticalBlock();
     Type tyEditorGUILayout = typeof(EditorGUILayout);
     gradientFieldMethod = tyEditorGUILayout.GetMethod("GradientField", BindingFlags.NonPublic | BindingFlags.Static, null, new Type[] { typeof(GUIContent), typeof(Gradient), typeof(GUILayoutOption[]) }, null);
 }
예제 #2
0
        static TurtleGUI()
        {
            horizontal = new HorizontalBlock();
            vertical   = new VerticalBlock();
            Type tyEditorGUILayout = typeof(EditorGUILayout);

            gradientFieldMethod = tyEditorGUILayout.GetMethod("GradientField", BindingFlags.NonPublic | BindingFlags.Static, null, new Type[] { typeof(GUIContent), typeof(Gradient), typeof(GUILayoutOption[]) }, null);
        }
예제 #3
0
 static TurtleGUI()
 {
     horizontal = new HorizontalBlock();
     vertical   = new VerticalBlock();
 }