Skip to content

Commit 9df1264

Browse files
PaulDemeulenaerejulienf-unity
authored andcommitted
Fix Preset (with exclusion) (#177)
* Trick ExcludeFromPreset Since this attribute is declared with "Inherited = false", we can't use it directly on VFXObject. Extend the VFXInfo is valid to filter out preset. * Fix missing ExcludeFromPreset for subgraph * *Update changelog
1 parent 6d8d869 commit 9df1264

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

com.unity.visualeffectgraph/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1212
- Forbid incorrect link between incompatible context [Case 1269756](https://issuetracker.unity3d.com/product/unity/issues/guid/1269756/)
1313
- Serialization issue with VFXSpawnerCallbacks
1414
- Unexpected exception while trying to display capacity warning [Case 1294180](https://issuetracker.unity3d.com/product/unity/issues/guid/1294180/)
15+
- Exclude Operator, Context, Block and Subgraph from Preset [Case 1232309](https://issuetracker.unity3d.com/product/unity/issues/guid/1232309/)
1516

1617
## [10.2.0] - 2020-10-19
1718
### Added

com.unity.visualeffectgraph/Editor/Core/VFXLibrary.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public virtual IEnumerable<IEnumerable<KeyValuePair<string, object>>> ComputeVar
3434

3535
// Attribute used to register VFX type to library
3636
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
37-
class VFXInfoAttribute : Attribute
37+
class VFXInfoAttribute : ExcludeFromPresetAttribute
3838
{
3939
public VFXInfoAttribute()
4040
{

com.unity.visualeffectgraph/Editor/Models/Contexts/VFXSubgraphContext.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
namespace UnityEditor.VFX
99
{
10+
[ExcludeFromPreset]
1011
class VFXSubgraphContext : VFXContext
1112
{
1213
[VFXSetting, SerializeField]

0 commit comments

Comments
 (0)