Manual     Reference     Scripting  
  
Scripting > Enumerations > ScaleMode   
  • Menu
  • Overview
  • Runtime Classes
  • Attributes
  • Enumerations
  • Editor Classes
  • Enumerations
  • History
  • Index
  • ScaleMode
  • All Members
  • Values
  • ScaleAndCrop
  • ScaleToFit
  • StretchToFill

ScaleMode.ScaleToFit  

ScaleMode.ScaleToFit

Description

Scales the texture, maintaining aspect ratio, so it completely fits withing the position rectangle passed to GUI.DrawTexture.