Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2020.1.14f1 #3

Closed
AldeRoberge opened this issue Dec 2, 2020 · 1 comment
Closed

2020.1.14f1 #3

AldeRoberge opened this issue Dec 2, 2020 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@AldeRoberge
Copy link

image

Is it supposed to work for Unity 2020?

This is what I get.

@ATHellboy ATHellboy self-assigned this Dec 3, 2020
@ATHellboy
Copy link
Owner

ATHellboy commented Dec 3, 2020

Hey @AldeRoberge,

It works on Unity 2020.1.15. So I think, there isn't any problems with Unity 2020.1.14 either.
Please check out Usage Example.

I think, that happens because of not using ScriptableObjectReference class.

using UnityEngine;

[CreateAssetMenu(menuName = "Create Block")]
public class Block : ScriptableObject
{
    // Some fields
}
using ScriptableObjectDropdown;
using UnityEngine;

public class BlockManager : MonoBehaviour
{
    // Without grouping (default is None)
    [ScriptableObjectDropdown(typeof(Block))] public ScriptableObjectReference targetBlock;
    // By grouping
    [ScriptableObjectDropdown(typeof(Block), grouping = ScriptableObjectGrouping.ByFolder)]
    public ScriptableObjectReference targetBlockByGrouping;
}

@ATHellboy ATHellboy added the question Further information is requested label Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants