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