Skip to content
This repository has been archived by the owner on Aug 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #127 from techno-dwarf-works/feature/refactoring
Browse files Browse the repository at this point in the history
Version 3.1.7
  • Loading branch information
uurha committed Jul 25, 2024
1 parent 7bcba82 commit a05b948
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,12 @@ public override object GetCurrentValue()
{
var property = _container.SerializedProperty;
var objectOfProperty = property.GetValue();
Type type = null;
if (objectOfProperty == null)
{
type = GetFieldOrElementType();
return type;
return new SerializedType();
}

type = objectOfProperty.GetType();
var type = objectOfProperty.GetType();
if (type == typeof(SerializedType))
{
type = (objectOfProperty as SerializedType)?.Type;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.uurha.betterattributes",
"displayName": "Better Attributes",
"version": "3.1.6",
"version": "3.1.7",
"unity": "2021.3",
"description": "Unity attributes, allows to serialize interfaces, draw handles for Vector3/Vector2/Quaternion/Bounds, create read only fields.",
"dependencies": {
Expand Down

0 comments on commit a05b948

Please sign in to comment.