public static void SetAllMaterial(this SkinnedMeshRenderer meshRenderer, Material material)
        {
            var mats = new List <Material>();

            for (var i = 0; i < meshRenderer.materials.Length; i++)
            {
                mats.Add(material);
            }

            meshRenderer.SetMeshMaterial(mats.ToArray());
        }