@greatestever wrote:
This detects rotation on the web, but it doesn't seem to work on an android device. Is there anyway to do this in Cocos Creator? I need to know when the device rotates in a particular scene.
cc.director.on(cc.Director.EVENT_PROJECTION_CHANGED, function (event) { cc.log("Projection/Rotation"); }, this);
Posts: 1
Participants: 1