Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to getobject from id in controlp5

ControlP5
method is getController(java.lang.String) returns ControlP5.Controller

Example
ControlP5 cp5=new Controller(this);
cp5.addButton("hello_btn").setPosition(100,100);

cp5.getController("hello_btn").setPosition(100,120);
 
PREVIOUS NEXT
Tagged: #getobject #id
ADD COMMENT
Topic
Name
9+5 =