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 UnityEngine.UIElements; | |
namespace Extensions | |
{ | |
public static class DocumentExtensions | |
{ | |
public static void FindFirstVisualElement<V>(this UIDocument document, out V visualElement) | |
where V : VisualElement | |
{ |
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; | |
#ROOTNAMESPACEBEGIN# | |
//namespace { | |
internal sealed class #SCRIPTNAME# : SceneObject | |
{ | |
#NOTRIM# | |
} | |
//} | |
#ROOTNAMESPACEEND# |
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; | |
[DisallowMultipleComponent] | |
public abstract class SceneObject : MonoBehaviour | |
{ | |
/*Parent class for all entities on scene*/ | |
protected Vector3 Position => transform.position; | |
internal void Activate() |
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; | |
//namespace Make.Namespace.Name { | |
/// <summary> | |
/// 'InputActionsMap' is name of your class created by InputSystem. | |
/// Go to Input Action Asset, | |
/// make flag on Generate C# Class, | |
/// fill C# Class Name ('InputActionsMap'), | |
/// fill C# Class Namespace (optional) |