Skip to content

Swapping out a ColorMaterial with another existing ColorMaterial from a small set? #7497

Discussion options

You must be logged in to vote

Rather than Default, implement FromWorld. init_resource always uses the FromWorld implementation — that trait just gets automatically implemented on anything that has Default.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jackwayneright
Comment options

Answer selected by jackwayneright
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants