This file contains 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.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
/// <summary> | |
/// Layout Group controller that arranges children in columns, fitting as many on a line until total height exceeds parent bounds | |
/// </summary> | |
public class HorizontalFlowLayoutGroup : LayoutGroup | |
{ | |
public float Spacing = 0f; |
This file contains 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 UnityEditor; | |
using UnityEngine; | |
namespace Utility.SLayout { | |
[CustomEditor(typeof(SHorizontalOrVerticalLayoutGroup), true)] | |
[CanEditMultipleObjects] | |
/// <summary> | |
/// Custom Editor for the HorizontalOrVerticalLayoutGroupEditor Component. | |
/// Extend this class to write a custom editor for a component derived from HorizontalOrVerticalLayoutGroupEditor. | |
/// </summary> |
This file contains 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 System.Collections.Generic; | |
using UnityEditor; | |
using UnityEngine; | |
//Unity 4.1.5 | |
public class UnityTextures : EditorWindow | |
{ |