Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

.add( controller ) #4

Closed
Closed
@mrdoob

Description

I was wondering if it would be possible to allow this approach:

gui.add( new ControllerVector2D( vector ) );

Maybe with a patch like this?

this.add = function() {
 var object = arguments[ 0 ];
 if ( object instanceof Controller ) {
 controllers.add( object );
 return;
 }
 // rest of the code that figures if object is a number, string, etc
}

This would allow people to create their own custom controllers without having to mess up with the GUI internal code.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /