Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AspectFit

Scale the movie until one dimension fits on the screen exactly.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
AspectFit = 1

Remarks

In the other dimension, the region between the edge of the movie and the edge of the screen is filled with a black bar. The aspect ratio of the movie is preserved.