- Home /
Question by
raining_day0513 · Mar 04 at 03:20 AM ·
gameobjectrendererchild object
How to Set Skinned Mesh Renderer from Parent Object?
As title. I have a child gameObject called head, which has a Skinned Mesh Renderer attached to it. I want to set its Smoothness (floating point) value.
My trying currently:
character.transform.Find("head").GetComponent(typeof(SkinnedMeshRenderer)).Smoothness = valueValidated;
Comment
Best Answer
Answer by raining_day0513 · Mar 04 at 07:43 AM
parentObject.transform.Find("CHILD_NAME").GetComponent().material.SetFloat("_GlossMapScale", yourValue)