Author Topic: How to reset the xframe billboard after a screen orientation change?  (Read 358 times)

ashwinFEC

  • Newbie
  • *
  • Posts: 5
    • View Profile
If the screen orientation changes the XFrame billboard doesn't adapt it's ratio and the render texture resolution doesn't changes immediately. Do I need to call a function to make that happen?
« Last Edit: June 01, 2018, 08:05:52 AM by ashwinFEC »

Kronnect

  • Administrator
  • Hero Member
  • *****
  • Posts: 4083
    • View Profile
When that occurs, try toggling the downsampling method:

Code
XFRAME_DOWNSAMPLING_METHOD prev = XFrameManager.instance.method;
XFrameManager.instance.method = XFRAME_DOWNSAMPLING_METHOD.Disabled;
XFrameManager.instance.method = prev;