Skip to content

Question about usage with ScriptableObjects #1

@MostHated

Description

@MostHated

Hey there,
I was just wondering if this package happened to handle ScriptableObject asset names out of the box?

Example:

public class BaseObject : ScriptableObject {}

public class ObjectTypeA : BaseObject {}
public class ObjectTypeB : BaseObject {}

// Where the following 
MyObjectA.asset == typeof(ObjectTypeA)
MyAdditionalObjectB.asset == typeof(ObjectTypeB)

What I am looking for is a way to easily have the names "MyObjectA" and "MyAdditionalObjectB" be generated as type-safe code.
I tried to look through the docs for "ScriptableObject" to see if it specifically had a section or notes on that, but I did not see anything.

Thanks,
-MH

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions