Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17111

Android Orientation

$
0
0

@greatestever wrote:

@pandamicro

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

Read full topic


Viewing all articles
Browse latest Browse all 17111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>