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

New Component: ButtonAttachComponent #1651

Open
JackTheFoxOtter opened this issue Apr 9, 2024 · 3 comments
Open

New Component: ButtonAttachComponent #1651

JackTheFoxOtter opened this issue Apr 9, 2024 · 3 comments
Labels
New Feature A new addition, whose complexity hasn't been evaluated yet

Comments

@JackTheFoxOtter
Copy link

JackTheFoxOtter commented Apr 9, 2024

Is your feature request related to a problem? Please describe.

Currently, it's not easy to make a button that attaches a specific component to a specified slot.

Describe the solution you'd like

A new component ButtonAttachComponent which is a IButtonPressReceiver and allows specifying a Target slot, as well as a Component type.

Describe alternatives you've considered

Using the existing Inspector and ComponentAttacher components, but that relies on functionality of editor components and I'm afraid might break in the future when those dialogs are re-worked, as this is using them in a way that isn't the intended use-case.

Additional Context

I want to use this as part of a setup wizard dialog for an avatar to automatically add the SimpleAvatarProtection component during the setup, without having the user to open an inspector.

Requesters

No response

@JackTheFoxOtter JackTheFoxOtter added the New Feature A new addition, whose complexity hasn't been evaluated yet label Apr 9, 2024
@shiftyscales
Copy link
Collaborator

This is probably better handled by #57.

@shiftyscales shiftyscales removed their assignment Apr 9, 2024
@JackTheFoxOtter
Copy link
Author

I think attaching a component manually is a simple and common enough use-case that in my opinion should just have its own button interaction on top of the future component access for ProtoFlux.

@Electronus
Copy link

Electronus commented Apr 10, 2024

This would potentially really help people now as well, as it would make a very simple way to add something like avatar protection without an inspector.

edit I see that was mentioned. missed the last line! but yeah +1 for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Feature A new addition, whose complexity hasn't been evaluated yet
Projects
None yet
Development

No branches or pull requests

3 participants