Graphic settings

yea well the docu as seen in the link still shows the old way of doing it so i got confused but got it working

only now have the following problem

i have a custom button for my UI so i don’t have to redesign buttons every single time

but now i have the issue when i want to use a array for the settings menu it wont allow me because its a object reference

is there anyone that knows how to fix this ?
or a work around