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 CodeSmile.Components.Registry; | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEditor; | |
using UnityEngine; | |
namespace CodeSmile.Components.Pool | |
{ | |
[DisallowMultipleComponent] |
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
// Copyright (C) 2021-2023 Steffen Itterheim | |
// Refer to included LICENSE file for terms and conditions. | |
using NUnit.Framework; | |
using System; | |
using System.Collections.Generic; | |
using Unity.Collections; | |
using Unity.Collections.LowLevel.Unsafe; | |
using Unity.Serialization.Binary; | |
using UnityEngine; |
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
// This work is Public Domain (CC0) - "No Rights Reserved" | |
// License: https://creativecommons.org/publicdomain/zero/1.0/ | |
using System.Reflection; | |
using UnityEditor; | |
using UnityEditor.TestTools.TestRunner.Api; | |
using UnityEngine; | |
namespace CodeSmile.Tests.Utilities | |
{ |
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
#if UNITY_EDITOR | |
using UnityEditor; | |
using UnityEditor.SceneManagement; | |
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
namespace CodeSmile.EditorTests | |
{ | |
[InitializeOnLoad] | |
public class TestCustomBuildProcess |
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 CodeSmile.UnityEditor; | |
using System; | |
using UnityEditor; | |
using UnityEngine; | |
using UnityEngine.UIElements; | |
namespace CodeSmile.Tile.UnityEditor | |
{ | |
[CustomEditor(typeof(TileWorld))] | |
public class TileWorldDrawer : Editor |
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
protected virtual void OnSceneGUI() | |
{ | |
HandlesTest testObject = (HandlesTest)target; | |
// begin monitoring for GUI changes | |
EditorGUI.BeginChangeCheck(); | |
// do whatever GUI stuff that lets user change something on the testObject | |
var newPos = Handles.PositionHandle(testObject.transform.position, Quaternion.identity); | |
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 Domain | |
// Usage: Add an instance of EditorInputState to an editor script, create the instance on Awake. | |
// Then call m_InputState.Update() in every On*GUI method you implement and then query the m_InputState | |
// wherever you need to test for input. | |
using System; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UIElements; |
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; | |
namespace CodeSmile | |
{ | |
public static class RayExt | |
{ | |
const float MinDenominator = 0.00001f; | |
/// <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
// Public Domain | |
using UnityEngine; | |
namespace CodeSmile | |
{ | |
[ExecuteInEditMode] | |
public class DropToGround : MonoBehaviour | |
{ | |
[SerializeField] private bool m_SnapPosition; |
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; | |
namespace CodeSmile.EditorTests | |
{ | |
public static class GameObjectExt | |
{ | |
public static bool IsNullOrMissing(this GameObject instance) => instance == null || ReferenceEquals(instance, null); | |
} | |
} |
NewerOlder