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

fix: Corehaptics.AssetPickerDrawer throws exceptions and draws incorrectly when fieldInfo or assetType is null #47

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ilterbilguven
Copy link

I'm having problems with collections of ScriptableObjects on inspector.
For example:

using System.Collections.Generic;
using UnityEngine;

public class Test : MonoBehaviour
{
    public List<ScriptableObject> scriptableObjects;
}

It is rendered on inspector like this:
Screenshot 2025-02-05 at 14 56 53
But it was supposed to look like this:
Screenshot 2025-02-05 at 14 57 05

The issue is caused by CoreHaptics.AssetPickerDrawer

This PR fixes this issue by drawing the PropertyField as is, if fieldInfo or assetType is null.

PS: I'm using Unity 6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant