it is used to embed gist to an asynchronously-loaded web pages.
<iframe
width="100%"
height="350"
src="data:text/html;charset=utf-8,
| using System.Collections; | |
| using UnityEngine; | |
| using UnityEngine.UI; | |
| public static class ScrollViewFocusFunctions | |
| { | |
| public static Vector2 CalculateFocusedScrollPosition( this ScrollRect scrollView, Vector2 focusPoint ) | |
| { | |
| Vector2 contentSize = scrollView.content.rect.size; | |
| Vector2 viewportSize = ( (RectTransform) scrollView.content.parent ).rect.size; |
| using UnityEngine; | |
| using System.Collections; | |
| public class MonoBehaviourSingleton<T> : MonoBehaviour | |
| where T : Component | |
| { | |
| private static T _instance; | |
| public static T Instance { | |
| get { | |
| if (_instance == null) { |