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
public abstract class UIBasicSprite : UIWidget | |
{ | |
... | |
public enum FillDirection | |
{ | |
Horizontal, | |
Vertical, | |
Radial90, | |
Radial180, |
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.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using System.Text; | |
using UnityEditor; | |
using UnityEditor.SceneManagement; | |
using UnityEngine; | |
/// <summary> | |
/// Utility script for finding missing references to objects. |
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.IO; | |
using UnityEditor; | |
using UnityEngine; | |
public class LegacyAnimationCreator | |
{ | |
[MenuItem("Assets/Create/Legacy Animation", priority = 402)] | |
public static void CompressSelectedAnimationClips() | |
{ | |
var clip = new AnimationClip(); |
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
public static class FontExtension | |
{ | |
// Call it when the type of the string assigned to the global Text component is minimal. | |
// XXX : If font is in AssetBundle, it may not work correctly. | |
public static void RefreshDynamicTexture(this Font font) | |
{ | |
if (font == null || font.dynamic == false) | |
return; | |
Resources.UnloadAsset(font); |
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.Collections.Generic; | |
using UnityEditor; | |
using UnityEngine; | |
public class MaterialRefCleaner : EditorWindow | |
{ | |
private SerializedObject serializedObject; | |
private Material selectedMaterial; | |
[MenuItem("Tools/Optimization/Material/Open Material Reference Cleaner", priority = 51)] |
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
public static string FieldsToLine(string[] fields) | |
{ | |
if (fields == null || fields.Length <= 0) | |
return string.Empty; | |
string line = string.Empty; | |
foreach (var field in fields) | |
{ | |
string convertedField = field; |
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 UnityEditor; | |
using System.IO; | |
using System.Collections.Generic; | |
public class Fix55To54 { | |
[System.SerializableAttribute] | |
public class GameObjectData { | |
public bool activeSelf; |