Skip to content

Commit

Permalink
Merge pull request #115 from FishingCactus/feature/summary
Browse files Browse the repository at this point in the history
Summary in readme
  • Loading branch information
rascar-capac authored May 27, 2024
2 parents 43bd8ef + 1d6bfc8 commit 47eeebc
Show file tree
Hide file tree
Showing 124 changed files with 1,341 additions and 990 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## [2.0.0] - 2024-04-29
### Added
- Summary in readme
### Updated
- Files reorganized
- `StringHelper` methods are now extensions in `StringExtensions`
- Utility script names are more consistent
- Namespaces added or updated from `FishingCactus` to `FishingCactus.CommonCode`

## [1.2.1] - 2024-05-06
### Added
- Add `MATHEMATICS_AVAILABLE` symbol when `com.unity.mathematics` is used for code that depends on `Mathematics`
Expand Down
2 changes: 1 addition & 1 deletion Editor/ApplySelectedPrefabs.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using UnityEditor;
using UnityEngine;

namespace FishingCactus
namespace FishingCactus.CommonCode
{
public class ApplySelectedPrefabs : EditorWindow
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using UnityEngine;
using UnityEngine.SceneManagement;

namespace FishingCactus
namespace FishingCactus.CommonCode
{
public sealed class CreateAssetContextMenu : IPropertyContextMenuCallback
{
Expand All @@ -27,7 +27,7 @@ SerializedProperty property
return;
}

Type property_type = InspectorUtilities.GetPropertyType( property );
Type property_type = InspectorUtils.GetPropertyType( property );
Type scriptable_object_type = typeof( ScriptableObject );

if( !scriptable_object_type.IsAssignableFrom( property_type ) )
Expand All @@ -46,7 +46,7 @@ SerializedProperty property
_dropdown.OnImplementationSelected -= Dropdown_OnImplementationSelected;
}
var implementations = ReflectionUtilities.GetImplementations( property_type, IsValidImplementation );
var implementations = ReflectionUtils.GetImplementations( property_type, IsValidImplementation );
_dropdown = new SelectImplementationDropdown( new AdvancedDropdownState(), property_type, IsValidImplementation );
_dropdown.Show( context_menu_rect );
_dropdown.OnImplementationSelected += Dropdown_OnImplementationSelected;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using UnityEditor;
using UnityEngine;

namespace FishingCactus
namespace FishingCactus.CommonCode
{
public interface IPropertyContextMenuCallback
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using UnityEditor;
using UnityEngine;

namespace FishingCactus
namespace FishingCactus.CommonCode
{
public static class PropertyContextMenuCallbackFetcher
{
Expand All @@ -14,7 +14,7 @@ private static void Initialize()
{
EditorApplication.contextualPropertyMenu += EditorApplication_OnPropertyContextMenu;

_targets.AddRange( ReflectionUtilities.CreateInstances<IPropertyContextMenuCallback>() );
_targets.AddRange( ReflectionUtils.CreateInstances<IPropertyContextMenuCallback>() );
}

private static void EditorApplication_OnPropertyContextMenu(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using UnityEditor;
using UnityEngine;

namespace FishingCactus
namespace FishingCactus.CommonCode
{
public sealed class VectorContextMenu : IPropertyContextMenuCallback
{
Expand Down
Loading

0 comments on commit 47eeebc

Please sign in to comment.