so i will just add this to desktop canvas and uncheck mobile? or should i uncheck for mobile for desktop canvas and for mobile canvas i should uncheck desktop ?
yes the rest of the scene will be untouched. If you are unsure about what a component does, just open it and have a look for yourself Some are quite simple.
but how can i disable the script if i see the mobile device is detected?Sorry I’m not a Ts coder I’m using chatgpt so far.
I have two script to rotate the game object, one used mouse touch, other uses pointer (this one is for mobile)
If both scripts are enabled then the rotation on desktop is not affected but the rotation on mobile is affected and it only wants the pointer script on the object to rotated the game object smoothly, so on mouse rotation script i want that if the mobile device is detected the script disables itself