realtime-CSG-for-unity icon indicating copy to clipboard operation
realtime-CSG-for-unity copied to clipboard

[Request] API for assigning materials from code

Open sonygod opened this issue 7 years ago • 3 comments

how to auto assingn box six surface with difference materials or give one speical material API?

sonygod avatar Oct 26 '16 07:10 sonygod

I'm sorry, I might not understand your question properly, but you're asking how to assign materials to a brush using code?

LogicalError avatar Oct 26 '16 07:10 LogicalError

yes, you right, box brush have six surface ,and defined share one material.

sonygod avatar Oct 26 '16 09:10 sonygod

Is this is an existing brush, or are you creating this brush using BrushFactory.CreateBrushFromPlanes?

LogicalError avatar Oct 26 '16 15:10 LogicalError