Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit3bb1da2647

README.md

MaterialAuthor.fromColor

Makes a flat-colour material from an RGB(A) value in one call, with options for its name, shader, roughness, metallic, and emissive so a plain tint or a simple metal is a single line. Returns a live material ref.

This is an authoring action performed at design time: it writes a new source material asset. Never call it from gameplay code — at runtime you apply an already-authored material through the lower-level Material surface.