|
|
|
@ -66,11 +66,13 @@ namespace Fungus
|
|
|
|
|
GUI.BeginGroup(clippedArea); |
|
|
|
|
|
|
|
|
|
_prevGuiMatrix = GUI.matrix; |
|
|
|
|
Matrix4x4 translation = Matrix4x4.TRS(clippedArea.TopLeft(), Quaternion.identity, Vector3.one); |
|
|
|
|
|
|
|
|
|
Matrix4x4 translation = Matrix4x4.TRS(clippedArea.TopLeft(), Quaternion.identity, Vector3.one); |
|
|
|
|
Matrix4x4 scale = Matrix4x4.Scale(new Vector3(zoomScale, zoomScale, 1.0f)); |
|
|
|
|
GUI.matrix = translation * scale * translation.inverse * GUI.matrix; |
|
|
|
|
|
|
|
|
|
return clippedArea; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return clippedArea; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void End() |
|
|
|
|