Skip to content

Commit 17f1da0

Browse files
committed
Fix parameter not editable in Unity 2021.2
1 parent af88e7f commit 17f1da0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Assets/com.alelievr.NodeGraphProcessor/Editor/Views/ExposedParameterFieldFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public ExposedParameterFieldFactory(BaseGraph graph, List<ExposedParameter> cust
3131

3232
exposedParameterObject = ScriptableObject.CreateInstance<ExposedParameterWorkaround>();
3333
exposedParameterObject.graph = graph;
34-
exposedParameterObject.hideFlags = HideFlags.HideAndDontSave;
34+
exposedParameterObject.hideFlags = HideFlags.HideAndDontSave ^ HideFlags.NotEditable;
3535
serializedObject = new SerializedObject(exposedParameterObject);
3636
UpdateSerializedProperties(customParameters);
3737
}

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1313
- Fixed relay node not applying custom conversions when needed
1414
- Fixed the node create menu not listing all nodes when created from edge drag.
1515
- Fixed Int vector drawer display in nodes.
16+
- Fixed parameter not editable in Unity 2021.2.
1617

1718
### Changed
1819
- Deprecated the FieldFactory and [FieldDrawer] system. You can use Unity's CustomPropertyDrawer instead.

0 commit comments

Comments
 (0)