Using Unity 2019.4
Yesterday I tried the following:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Puzzle.GreatAlembic
{
public interface _OutputMultiplier : MonoBehaviour
{
void Multiplier(float factor);
}
}
and then set up another class with a public array as follows:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Puzzle.GreatAlembic
{
public _OutputMultiplier[ ] item;
}
The inspector didn’t show the array at all. However, when I changed from an interface to an abstract class:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Puzzle.GreatAlembic
{
public abstract class _OutputMultiplier : MonoBehaviour
{
public abstract void Multiplier(float factor);
}
}
it worked as expected