Skip to content

Adding ShowAttribute / EnableAttribute with correct inspector handling#203

Open
mio-moto wants to merge 1 commit into
dbrizov:masterfrom
mio-moto:feature/enabledAttributes
Open

Adding ShowAttribute / EnableAttribute with correct inspector handling#203
mio-moto wants to merge 1 commit into
dbrizov:masterfrom
mio-moto:feature/enabledAttributes

Conversation

@mio-moto

Copy link
Copy Markdown

In this PR there have been following additions:

  • ShowAttribute as base class for all ShowAttributes, including ShowIfAttributeBase
    • HideInEditMode
    • HideInPlayMode
    • ShowInEditMode (lack override logic in inspector)
    • ShowInPlayMode (lack override logic in inspector)
  • EnableAttribute as base class for all EnableAttributes, including EnableIfAttributeBase
    • DisableInEditMode
    • DisableInPlayMode
    • ShowInEditMode (lacks override logic in inspector)
    • ShowInPlayMode (lack override logic in inspector)
  • DisableTest and HideTest for showcasing

Following changes have been included:

  • EButtonEnableMode has been marked as obsolete, to incorporate legacy support, but encouraging attribute stacking
  • Appropriate changes to IsEnable and IsVisible Methods on PropertyUtility and ButtonUtility

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