Playmaker Forum

PlayMaker Help & Tips => iOS Help => Topic started by: Groo Gadgets on June 24, 2015, 05:23:11 AM

Title: Get Device Orientation Action?
Post by: Groo Gadgets on June 24, 2015, 05:23:11 AM
Hey all,

Just wondering if an action exists to get the current device orientation?

I'm using the Device Orientation Event action when my orientation changes however I would like to check what the device orientation is when I initialize my game.

Any help would be great  :-)

Cheers,

Simon
Title: Re: Get Device Orientation Action?
Post by: jeanfabre on June 24, 2015, 08:13:50 AM
Hi,

 there is an action called Device Orientation Watcher (https://github.com/jeanfabre/PlayMakerCustomActions_U3/blob/master/Assets/PlayMaker%20Custom%20Actions/Device/DeviceOrientationWatcher.cs) on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181).

This should do the job.

 Bye,

 Jean
Title: Re: Get Device Orientation Action?
Post by: Groo Gadgets on June 24, 2015, 05:06:38 PM
Thanks Jean, i'll give it a try right now!

Simon