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
var projectNamespace = "Sample.Data"; |
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; | |
/// <summary> | |
/// Folder organizer editor window. | |
/// http://diegogiacomelli.com.br/using-an-assetpostprocessor-editorwindow-to-keep-assets-organized-on-unity-projects | |
/// </summary> | |
public class FolderOrganizerEditorWindow : EditorWindow | |
{ | |
FolderOrganizerSettings _settings; |
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.Runtime.CompilerServices; | |
using System.Text; | |
using UnityEngine; | |
using UnityEngine.Events; | |
namespace Giacomelli.Framework | |
{ | |
public static class UnityEventExtensions | |
{ | |
[System.Diagnostics.Conditional("DEBUG")] |
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.Reflection; | |
using UnityEngine; | |
using UnityEngine.Experimental.Rendering.Universal; | |
/// <summary> | |
/// unitytips: ShadowCaster2DFromCollider Component | |
/// http://diegogiacomelli.com.br/unitytips-shadowcaster2-from-collider-component | |
/// <remarks> | |
/// Based on https://forum.unity.com/threads/can-2d-shadow-caster-use-current-sprite-silhouette.861256/ | |
/// </remarks> |
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 UnityEngine; | |
using UnityEditor; | |
/// <summary> | |
/// Scene preview data. | |
/// http://diegogiacomelli.com.br/unitytips-scene-preview-window | |
/// </summary> | |
public class ScenePreviewData | |
{ | |
Texture2D _texture; |
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
public class BotController : MonoBehaviour | |
{ | |
private void Start() | |
{ | |
Send("Hello world!"); | |
} | |
/// <summary> | |
/// Sends a message to a Slack channel using the Slackbot API through the chat.postMessage (https://api.slack.com/methods/chat.postMessage) | |
/// </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 UnityEngine; | |
/// <summary> | |
/// Dynamic Log - http://diegogiacomelli.com.br/unitytips-dynamic-log | |
/// </summary> | |
public class DynamicLog : MonoBehaviour | |
{ | |
[SerializeField] | |
string _format; |
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 UnityEngine; | |
using UnityEditor; | |
/// <summary> | |
/// Hierarchy Window Group Header | |
/// http://diegogiacomelli.com.br/unitytips-hierarchy-window-group-header | |
/// </summary> | |
[InitializeOnLoad] | |
public static class HierarchyWindowGroupHeader | |
{ |
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; | |
/// <summary> | |
/// Hierarchy window game object icon. | |
/// http://diegogiacomelli.com.br/unitytips-hierarchy-window-gameobject-icon/ | |
/// </summary> | |
[InitializeOnLoad] | |
public static class HierarchyWindowGameObjectIcon | |
{ |
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.Linq; | |
using UnityEditor; | |
using UnityEngine; | |
/// <summary> | |
/// Easing2Curve: An editor window to create animation curve from easing functions | |
/// http://diegogiacomelli.com.br/easing-2-curve-an-editor-window-to-create-animation-curve-from-easing-functions/ | |
/// </summary> | |
public class Easing2CurveEditorWindow : EditorWindow | |
{ |