Editing material on a entity.

Everything related to 3D programming
User avatar
Samuel
Enthusiast
Enthusiast
Posts: 756
Joined: Sun Jul 29, 2012 10:33 pm
Location: United States

Editing material on a entity.

Post by Samuel »

For example lets say you have cube and it has a plain white material on it. Now lets say you cover half of that material in blue. Is there a way to show that on the entity without having to recreate the entity with the changed material.
User avatar
idle
Always Here
Always Here
Posts: 6089
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Editing material on a entity.

Post by idle »

you can change an entities material at any time with with SetEntityMaterial(#Entity, MaterialID)
or you could also add and remove a layer with AddMaterialLayer RemoveMaterialLayer
Windows 11, Manjaro, Raspberry Pi OS
Image
User avatar
Samuel
Enthusiast
Enthusiast
Posts: 756
Joined: Sun Jul 29, 2012 10:33 pm
Location: United States

Re: Editing material on a entity.

Post by Samuel »

Thanks, I'll have to try them out later.
Post Reply