示例#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();
 }