mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2025-02-23 05:24:32 +01:00
25 lines
No EOL
726 B
C#
25 lines
No EOL
726 B
C#
// Copyright (c) 2015 Augie R. Maddox, Guavaman Enterprises. All rights reserved.
|
|
#pragma warning disable 0219
|
|
#pragma warning disable 0618
|
|
#pragma warning disable 0649
|
|
|
|
namespace Rewired.UI.ControlMapper {
|
|
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
|
|
/// <summary>
|
|
/// This class exists only for the purpose of being able to force a refresh on the canvas scaler to prevent drawing artifacts when changing the scale on Awake/Enable
|
|
/// </summary>
|
|
[AddComponentMenu("")]
|
|
public class CanvasScalerExt : CanvasScaler {
|
|
|
|
/// <summary>
|
|
/// Force a refresh on the canvas scaler.
|
|
/// </summary>
|
|
public void ForceRefresh() {
|
|
Handle();
|
|
}
|
|
}
|
|
} |