This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
| // http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
| // requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
| // MIT license | |
| (function() { | |
| var lastTime = 0; | |
| var vendors = ['ms', 'moz', 'webkit', 'o']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Corrade/Utility/Assert.h> | |
| #include <Corrade/PluginManager/Manager.h> | |
| #include <Magnum/Magnum.h> | |
| #include <Magnum/ImageView.h> | |
| #include <Magnum/PixelFormat.h> | |
| #include <Magnum/Math/Color.h> | |
| #include <Magnum/Trade/AbstractImageConverter.h> | |
| #include <MagnumExternal/Vulkan/flextVk.h> | |
| #include "spirv.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using UnityEngine.UI; | |
| // Set _ScaleAndOffset in the shader so that our math works as expected with textures in atlases :) | |
| [ExecuteInEditMode] | |
| public class ImageFadeIn : MonoBehaviour | |
| { | |
| [SerializeField] | |
| private Image target; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using UnityEngine; | |
| using UnityEditor; | |
| public static class EditorGUILayoutExtensions | |
| { | |
| /// <summary> | |
| /// Add a EditorGUILayout.ToggleLeft which properly handles multi-object editing | |
| /// </summary> | |
| public static void ToggleLeft(this SerializedProperty prop, GUIContent label, params GUILayoutOption[] options) |



