mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[unity] Minor: whitespace correction of previous commit.
This commit is contained in:
parent
91cc6ddfaa
commit
e7457546b0
@ -89,8 +89,8 @@ namespace Spine.Unity {
|
|||||||
#else
|
#else
|
||||||
protected const bool EditReferenceRect = false;
|
protected const bool EditReferenceRect = false;
|
||||||
#endif
|
#endif
|
||||||
/// <summary>Update mode to optionally limit updates to e.g. only apply animations but not update the mesh.</summary>
|
/// <summary>Update mode to optionally limit updates to e.g. only apply animations but not update the mesh.</summary>
|
||||||
public UpdateMode UpdateMode { get { return updateMode; } set { updateMode = value; } }
|
public UpdateMode UpdateMode { get { return updateMode; } set { updateMode = value; } }
|
||||||
protected UpdateMode updateMode = UpdateMode.FullUpdate;
|
protected UpdateMode updateMode = UpdateMode.FullUpdate;
|
||||||
|
|
||||||
/// <summary>Update mode used when the MeshRenderer becomes invisible
|
/// <summary>Update mode used when the MeshRenderer becomes invisible
|
||||||
@ -1142,7 +1142,7 @@ public UpdateMode UpdateMode { get { return updateMode; } set { updateMode = val
|
|||||||
protected float GetLayoutScale (LayoutMode mode) {
|
protected float GetLayoutScale (LayoutMode mode) {
|
||||||
Vector2 currentSize = GetCurrentRectSize();
|
Vector2 currentSize = GetCurrentRectSize();
|
||||||
float referenceAspect = referenceSize.x / referenceSize.y;
|
float referenceAspect = referenceSize.x / referenceSize.y;
|
||||||
float frameAspect = currentSize.x / currentSize.y;
|
float frameAspect = currentSize.x / currentSize.y;
|
||||||
if (mode == LayoutMode.FitInParent)
|
if (mode == LayoutMode.FitInParent)
|
||||||
mode = frameAspect > referenceAspect ? LayoutMode.HeightControlsWidth : LayoutMode.WidthControlsHeight;
|
mode = frameAspect > referenceAspect ? LayoutMode.HeightControlsWidth : LayoutMode.WidthControlsHeight;
|
||||||
else if (mode == LayoutMode.EnvelopeParent)
|
else if (mode == LayoutMode.EnvelopeParent)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user