- Home /
Can you allow inhereted ScripableObjects to be linked in the editor without dragging and dropping.
My Basic set up looks like this:
public class Powerup : ScriptableObject { }
public class FirePowerup : Powerup {}
Then I have a player class that has a power up publicly available to access
public class Player : MonoBehaviour
{
public Powerup myPowerUp; // this shows up as a field in the inspector
}
The goal is to let me create FirePowerup objects in my project and assign them in the inspector. And it MOSTLY works but I can ONLY assign them by dragging and dropping, they do not show up if I click on the circle in the inspector and try and get a list of all power up objects. Is there any way to get them to show up?
Your answer
Follow this Question
Related Questions
An OS design issue: File types associated with their appropriate programs 1 Answer
Wrong serialization when using ScriptableObject + [System.Serializable] + inheritance 2 Answers
Scriptable object problems 1 Answer
Scriptable Object List values are always null 1 Answer
SubClass Reference becomes BaseClass after Serialization 0 Answers