EditorGUI.DrawRect public static voidDrawRect(Rectrect,Colorcolor); 参数 rect要绘制的矩形的位置和大小。 color该矩形的颜色。 描述 在当前编辑器窗口中的指定位置以指定大小绘制一个着色的矩形。 使用此方法为您想要在编辑器中游戏对象的 Inspector 窗口中突出显示的区域提供颜色块。您还可以使用它们在编辑器中...
方法名:drawRect Gui.drawRect介绍 暂无 代码示例 代码示例来源:origin: Vazkii/Botania private static void drawManaBar(ItemStack stack, IManaTooltipDisplay display, int mouseX, int mouseY, int width, int height) { float fraction = display.getManaFractionForDisplay(stack); int manaBarWidth = (int...
GuiScreen.drawRect(rect3.getLeft(), rect3.getTop(), rect3.getRight(), rect3.getBottom(), (int) control.getCheckedColor().getHexColor()); } } publicvoiddrawHorizontalLine( GuiScreen gs,intp_73730_1_,intp_73730_2_,intp_73730_3_,intp_73730_4_ ){if( p_73730_2_ < p_73730_1_...
EditorGUI.DrawRectpublic static void DrawRect (Rect rect, Color color); 参数 rect 要绘制的矩形的位置和大小。 color 该矩形的颜色。描述 在当前编辑器窗口中的指定位置以指定大小绘制一个着色的矩形。使用此方法为您想要在编辑器中游戏对象的 Inspector 窗口中突出显示的区域提供颜色块。您还可以使用它们在...
EditorGUI.DrawRectpublic static void DrawRect (Rect rect, Color color); 参数 rect 要绘制的矩形的位置和大小。 color 该矩形的颜色。描述 在当前编辑器窗口中的指定位置以指定大小绘制一个着色的矩形。使用此方法为您想要在编辑器中游戏对象的 Inspector 窗口中突出显示的区域提供颜色块。您还可以使用它们在...
EditorGUI.DrawRect public static void DrawRect (Rect rect, Color color); パラメーター rect 描画する矩形の位置とサイズ color 矩形の色 説明 現在の Editor Window 内の指定された位置とサイズに色で塗りつぶした矩形を描画します。 Use this to give blocks of Color to areas you want to ...
// Uncomment the following line after replacing "MyScript" with your script name: // [CustomEditor(typeof(MyScript))] [CanEditMultipleObjects] public class EditorGUIDrawRectExample : Editor { //This is the value of the Slider float m_Value; public override void OnInspectorGUI() { //This...