Question by
oppaikir · Jan 06, 2016 at 01:43 AM ·
renderermaterialpropertyblock
Add or Set in MaterialPropertyBlock?
Hi, I am using Unity5.2.3,
and I found MaterialPropertyBlock class has Add method like「AddFloat」「AddColor」「AddTexture」...etc.
But official document only had Set & Get method there. http://docs.unity3d.com/ScriptReference/MaterialPropertyBlock.html
What's different of them?
and also, dose Clear method should must be calling before using both of Set and Add method?
thx.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612055123im_/https://answers.unity.com/themes/thub/images/avi.jpg)