Skip to content

Commit

Permalink
fix(Visual): add UnityFlag attribute to meshesToModify field
Browse files Browse the repository at this point in the history
The meshesToModify field needs to have the UnityFlag attribute on it
otherwise it won't show up the multiple choice enum drop down.
  • Loading branch information
thestonefox committed May 17, 2022
1 parent fd20d38 commit 3676613
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Runtime/Visual/MeshStateModifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ namespace Zinnia.Visual
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
using Zinnia.Data.Attribute;
using Zinnia.Data.Collection.List;
using Zinnia.Extension;

Expand Down Expand Up @@ -38,6 +39,7 @@ public enum MeshTypes
[Header("Mesh Settings")]
[Tooltip("The mesh components to modify.")]
[SerializeField]
[UnityFlags]
private MeshTypes meshesToModifiy = (MeshTypes)(-1);
/// <summary>
/// The mesh components to modify.
Expand Down

0 comments on commit 3676613

Please sign in to comment.