We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3270ae commit c4d5a3eCopy full SHA for c4d5a3e
Assets/Scripts/Editor/ContextMenu/GetVideoAspectRatioEditor.cs
@@ -19,7 +19,12 @@ static void DoubleMass(MenuCommand command)
19
Debug.LogError("No videoclip assigned..");
20
return;
21
}
22
+#if UNITY_2017
23
+ float aspectRatioY = v.texture.height / (float)v.texture.width;
24
+#else
25
float aspectRatioY = v.height / (float)v.width;
26
+#endif
27
+
28
29
// record undo
30
Undo.RecordObject(v.transform, "Set scale");
0 commit comments