Skip to content

optional-parameter for InjectedInInspector-annotation #3

@achimmihca

Description

@achimmihca

Marking something as optional could be valuable documentation on the InjectedInInspector annotation:

[InjectedInInspector(optional = true)
public GameObject optionalGameObject;

UniInject could use this during validation (i.e. check that there is a binding for everything non-optional that should be injected).

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