コード例 #1
0
 public PathGizmo(CustomPathEditorPlugin plugin, PathGizmoPlugin gizmoPlug, EditorInterface editor, CustomPath path)
 {
     this.editor = editor;
     this.path   = path;
     this.plugin = plugin;
     gizmoPlugin = gizmoPlug;
 }
コード例 #2
0
    public PathGizmoPlugin(CustomPathEditorPlugin plugin, EditorInterface editor)
    {
        this.editor = editor;
        this.plugin = plugin;
        object pathCol   = editor.GetEditorSettings().GetSetting("editors/3d_gizmos/gizmo_colors/path");
        Color  pathColor = new Color(0.5f, 0.5f, 1.0f, 0.8f);

        if (pathCol is Color col)
        {
            pathColor = col;
        }
        CreateMaterial("path_material", pathColor);
        CreateMaterial("path_thin_material", new Color(pathColor.r, pathColor.g, pathColor.b, 0.5f));
        CreateHandleMaterial("handles");
    }