#if CPP using System; using System.Collections.Generic; using UnityEngine; namespace Explorer.UnstripInternals { public class Internal_ScrollViewState { public Rect position; public Rect visibleRect; public Rect viewRect; public Vector2 scrollPosition; public bool apply; public static Dictionary Dict = new Dictionary(); public static Internal_ScrollViewState FromPointer(IntPtr ptr) { if (!Dict.ContainsKey(ptr)) { Dict.Add(ptr, new Internal_ScrollViewState()); } return Dict[ptr]; } } } #endif