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 RandomAnimalNameGeneratorService : MonoBehaviour | |
{ | |
[FormerlySerializedAs("colorsTextAsset")] | |
public TextAsset firstNameTextAsset; | |
[FormerlySerializedAs("adjectivesTextAsset")] | |
public TextAsset secondNameTextAsset; | |
[FormerlySerializedAs("namesTextAsset")] | |
public TextAsset thirdNameTextAsset; |
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
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Class)] | |
public class TypeValidationAttribute : PropertyAttribute | |
{ | |
public Type typeToValidate; | |
public TypeValidationAttribute(Type typeToValidate) | |
{ | |
this.typeToValidate = typeToValidate; | |
} | |
} |
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 System.Linq; | |
using UnityEngine; | |
using UnityEditor; | |
using UnityEditor.SceneManagement; | |
namespace Utils.Editor | |
{ | |
public static class RefactorTools |
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 System.Linq; | |
using UnityEditor; | |
using UnityEngine; | |
namespace Gemserk.Utils | |
{ | |
[CustomPropertyDrawer(typeof(OptionalFieldsAttribute))] | |
public class OptionalFieldsPropertyDrawer : PropertyDrawer | |
{ |
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 System.Linq; | |
using UnityEditor; | |
using UnityEngine; | |
namespace Utils.Editor | |
{ | |
public static class AssetDatabaseExt | |
{ |
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 NaiveNetworkGame.Server.Components; | |
using Unity.Collections; | |
using Unity.Entities; | |
using Unity.Mathematics; | |
using Unity.Transforms; | |
namespace NaiveNetworkGame.Server.Systems | |
{ | |
[UpdateAfter(typeof(MovementActionSystem))] | |
[UpdateInGroup(typeof(ServerSimulationSystemGroup))] |
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; | |
[ExecuteInEditMode] | |
public class TestEditor : MonoBehaviour | |
{ | |
public UnityEngine.Object prefab; | |
public GameObject parent; |
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
Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
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 System.Text; | |
using System.IO; | |
public static class CreateCustomEditorAction | |
{ | |
[MenuItem("Assets/Create/Custom Editor from Script", true)] | |
public static bool CreateCustomInspectorValidator() | |
{ | |
return Selection.activeObject is MonoScript; |
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
%YAML 1.1 | |
%TAG !u! tag:unity3d.com,2011: | |
--- !u!13 &1 | |
InputManager: | |
m_ObjectHideFlags: 0 | |
m_Axes: | |
- serializedVersion: 3 | |
m_Name: Horizontal | |
descriptiveName: | |
descriptiveNegativeName: |
NewerOlder