Skip to content

Using Resources.LoadAll #40

Description

@Navil

Hey,

pretty much new to this package (and C#, but not programming itself). I have that usecase where I need my SO to be generic, but Unity does not really allow that.
As I tried setting up an event driven Architecture, where each Ability is tied to a specific CombatEvent (e.g. StartOfRound, OnAttack, ...), I tried the following signature:
public abstract class AbilityData<T> : GenericScriptableObject where T: CombatEvent

However, calling
Resources.LoadAll<AbilityData<CombatEvent>>("Abilities") does not yield me any results. Is there any replacement function to be used, so.I can load all my GenericScriptableObjects from a folder?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions