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
| string spriteSheet = AssetDatabase.GetAssetPath( TileMapTexture ); | |
| Sprite[] sprites = AssetDatabase.LoadAllAssetsAtPath(spriteSheet).OfType<Sprite>().ToArray(); |
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; | |
| #if UNITY_EDITOR | |
| using UnityEditor; | |
| #endif | |
| using UnityEngine; | |
| using UnityEngine.Rendering; | |
| namespace Code.Utils | |
| { | |
| public class MeshUtils |
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 class SetFontPixelly : MonoBehaviour | |
| { | |
| public List<Font> Fonts = new List<Font>(); | |
| public void Start() | |
| { | |
| foreach (Font font in Fonts) | |
| { | |
| font.material.mainTexture.filterMode = FilterMode.Point; | |
| } |
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 IEnumerator LoadAllAssets<T>(OnLoadAssetsCallback<T[]> callback) where T : Object | |
| { | |
| List<IResourceLocation> locations = getLocationsForType<T>(); | |
| AsyncOperationHandle<IList<T>> asyncOperation = Addressables.LoadAssetsAsync<T>(locations, null); | |
| yield return asyncOperation; | |
| if (asyncOperation.Status == AsyncOperationStatus.Succeeded) | |
| { | |
| callback(asyncOperation.Result.ToArray()); | |
| } | |
| } |
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 UnityEditor.SceneManagement; | |
| using UnityEngine; | |
| using UnityEngine.SceneManagement; | |
| public class SceneViewEditorBoilerplate : ScriptableObject | |
| { | |
| public const string SVE_IS_ENABLED = "SVE_IS_ENABLED"; |
OlderNewer