Skip to content

string.ToColor() #56

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

Merged
merged 3 commits into from
Mar 10, 2022
Merged

string.ToColor() #56

merged 3 commits into from
Mar 10, 2022

Conversation

wbm1113
Copy link
Contributor

@wbm1113 wbm1113 commented Mar 10, 2022

What

Simple extension method to convert a string to a Color.

Why

Copying individual floats from the Unity editor to hard-code a color value is time consuming and annoying. With this, you can just copy the hex value out of the Unity editor and paste it into your script.

How

"#FFFFFF".ToColor()

@unitycoder unitycoder merged commit 3da65d0 into UnityCommunity:master Mar 10, 2022
@unitycoder
Copy link
Member

thanks!

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.

2 participants