Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ public override void OnGUI(Rect position, SerializedProperty property, GUIConten
EditorGUI.MinMaxSlider(splittedRect[1], ref minVal, ref maxVal,
minMaxAttribute.min,minMaxAttribute.max);

if(minVal < minMaxAttribute.min){
maxVal = minMaxAttribute.min;
if(minVal < minMaxAttribute.min){
minVal = minMaxAttribute.min;
}

if(minVal > minMaxAttribute.max){
if(maxVal > minMaxAttribute.max){
maxVal = minMaxAttribute.max;
}

Expand Down
17 changes: 17 additions & 0 deletions Editor/SimpleMinMaxSlider.Editor.asmdef
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "SimpleMinMaxSlider.Editor",
"references": [
"GUID:4099e5319e98558428028d54bc62664e"
],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}
7 changes: 7 additions & 0 deletions Editor/SimpleMinMaxSlider.Editor.asmdef.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Scripts.meta → Runtime.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "com.guciodevs.simple-min-max-slider",
"displayName": "Simple MinMax Slider",
"description": "Handy small package that adds a simple MinMaxSlider attribute.",
"version": "1.1.2",
"version": "1.1.3",
"unity": "2018.3",
"license": "MIT",
"dependencies": {
Expand Down