Quantcast
Channel: Questions in topic: "buildpipeline"
Viewing all articles
Browse latest Browse all 249

Windows Phone 8 : changes in MainPage.xaml.cs

$
0
0
Hi all, I would like to handle phone rotation on Windows Phone (for some gameplay behaviour) but i don't want Unity to be allowed to rotate from landscape to portait. I either don't want to have a class with an Update() function checking for Input.DeviceOrientation. I found a method in MainPage.xaml.cs (PhoneApplicationPage_OrientationChanged) which does exactly what I want, but if I modify this file, I need to change it every time I build my application. Does someone know if there is a place I can put the modified file in the Unity project (like for AppController.mm for iOS) who will replace the Unity's one by my own ? or should I copy the modified file myself in a BuildPostProcess function ?

Viewing all articles
Browse latest Browse all 249

Latest Images

Trending Articles



Latest Images

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