-
-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#232 - fixed a bug where expandable is not working for a list of scri…
…ptable objects
- Loading branch information
Showing
10 changed files
with
140 additions
and
64 deletions.
There are no files selected for viewing
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
17 changes: 17 additions & 0 deletions
17
Assets/NaughtyAttributes/Samples/DemoScene/TestAssets/TestScriptableObject 0.asset
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
%YAML 1.1 | ||
%TAG !u! tag:unity3d.com,2011: | ||
--- !u!114 &11400000 | ||
MonoBehaviour: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 0} | ||
m_Enabled: 1 | ||
m_EditorHideFlags: 0 | ||
m_Script: {fileID: 11500000, guid: 19472ac11eae27a4b804f354ca7d9c00, type: 3} | ||
m_Name: TestScriptableObject 0 | ||
m_EditorClassIdentifier: | ||
integer: 0 | ||
minMaxSlider: {x: 0, y: 0.5} | ||
vectorValue: {x: 1, y: 0, z: 0} |
8 changes: 8 additions & 0 deletions
8
Assets/NaughtyAttributes/Samples/DemoScene/TestAssets/TestScriptableObject 0.asset.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
Assets/NaughtyAttributes/Samples/DemoScene/TestAssets/TestScriptableObject 1.asset
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
%YAML 1.1 | ||
%TAG !u! tag:unity3d.com,2011: | ||
--- !u!114 &11400000 | ||
MonoBehaviour: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 0} | ||
m_Enabled: 1 | ||
m_EditorHideFlags: 0 | ||
m_Script: {fileID: 11500000, guid: 19472ac11eae27a4b804f354ca7d9c00, type: 3} | ||
m_Name: TestScriptableObject 1 | ||
m_EditorClassIdentifier: | ||
minMaxSlider: {x: 0.5, y: 1} | ||
vectorValue: {x: 0, y: 1, z: 0} |
8 changes: 8 additions & 0 deletions
8
Assets/NaughtyAttributes/Samples/DemoScene/TestAssets/TestScriptableObject 1.asset.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 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 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
24 changes: 24 additions & 0 deletions
24
Assets/NaughtyAttributes/Scripts/Test/_TestScriptableObject.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using UnityEngine; | ||
|
||
namespace NaughtyAttributes.Test | ||
{ | ||
//[CreateAssetMenu(fileName = "TestScriptableObject", menuName = "NaughtyAttributes/TestScriptableObject")] | ||
public class _TestScriptableObject : ScriptableObject | ||
{ | ||
[MinMaxSlider(0.0f, 1.0f)] | ||
public Vector2 minMaxSlider; | ||
|
||
[Dropdown("GetVectorValues")] | ||
public Vector3 vectorValue; | ||
|
||
private DropdownList<Vector3> GetVectorValues() | ||
{ | ||
return new DropdownList<Vector3>() | ||
{ | ||
{ "Right", Vector3.right }, | ||
{ "Up", Vector3.up }, | ||
{ "Forward", Vector3.forward } | ||
}; | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
Assets/NaughtyAttributes/Scripts/Test/_TestScriptableObject.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.