Skip to content

string.ToColor()#56

Merged
unitycoder merged 3 commits into
UnityCommunity:masterfrom
wbm1113:master
Mar 10, 2022
Merged

string.ToColor()#56
unitycoder merged 3 commits into
UnityCommunity:masterfrom
wbm1113:master

Conversation

@wbm1113

@wbm1113 wbm1113 commented Mar 10, 2022

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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