Browse Source

Fix Collection Contain result missing

The result boolean field had not been set to serialized so was not showing correctly in the inspector.
master
Steve Halliwell 4 years ago
parent
commit
b52cabc123
  1. 1
      Assets/Fungus/Docs/CHANGELOG.txt
  2. 2
      Assets/Fungus/Scripts/Commands/Collection/CollectionCommandContains.cs
  3. 2
      Assets/Fungus/Scripts/Commands/Collection/CollectionCommandContainsAll.cs
  4. 2
      Assets/Fungus/Scripts/Commands/Collection/CollectionCommandContainsAny.cs

1
Assets/Fungus/Docs/CHANGELOG.txt

@ -9,6 +9,7 @@ Unreleased
- Set actions on Property commands targeting structs now save changes. Previously the target variable was not being copied back to the internal struct, causing changes to be discarded. Impacts the following Property Commands, Color, Matrix, Quaternion, Vector2, Vector3, Vector4.
- Writer with 0 speed and TMPro text correctly writes at infinite speed, previously was infinite loop.
- Collection Contains* commands now actually show the field to store boolean result.
## Changed

2
Assets/Fungus/Scripts/Commands/Collection/CollectionCommandContains.cs

@ -15,7 +15,7 @@ namespace Fungus
public class CollectionCommandContains : CollectionBaseVarCommand
{
[VariableProperty(typeof(BooleanVariable))]
protected BooleanVariable result;
[SerializeField] protected BooleanVariable result;
protected override void OnEnterInner()
{

2
Assets/Fungus/Scripts/Commands/Collection/CollectionCommandContainsAll.cs

@ -19,7 +19,7 @@ namespace Fungus
protected BooleanData inSameOrder = new BooleanData(false);
[VariableProperty(typeof(BooleanVariable))]
protected BooleanVariable result;
[SerializeField] protected BooleanVariable result;
protected override void OnEnterInner()
{

2
Assets/Fungus/Scripts/Commands/Collection/CollectionCommandContainsAny.cs

@ -15,7 +15,7 @@ namespace Fungus
public class CollectionCommandContainsAny : CollectionBaseTwoCollectionCommand
{
[VariableProperty(typeof(BooleanVariable))]
protected BooleanVariable result;
[SerializeField] protected BooleanVariable result;
protected override void OnEnterInner()
{

Loading…
Cancel
Save