Select your preferred scripting language. All code snippets will be displayed in this language.
class in UnityEngine
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.Close
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.Close
Scales render textures to support dynamic resolution if the target platform/graphics API supports it.
The ScalableBufferManager handles the scaling of any render textures that you have marked to be DynamicallyScalable, when ResizeBuffers is called. All render textures marked as DynamicallyScalable are scaled by a width and height scale factor, the reason the scale is controlled through a scale factor and not with a specific width and height value is because different render textures will be different sizes but will want to be scaled by a common factor.
|heightScaleFactor||Height scale factor to control dynamic resolution.|
|widthScaleFactor||Width scale factor to control dynamic resolution.|
|ResizeBuffers||Function to resize all buffers marked as DynamicallyScalable.|
Did you find this page useful? Please give it a rating: