1234567891011121314151617181920 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class ClothingAdjuster : MonoBehaviour {
- [SerializeField]
- private int AdjustValue = 100;
- [SerializeField]
- private int AdjusIndex = 1;
- private void OnEnable()
- {
- SkinnedMeshRenderer currentItem = GetComponentInChildren<SkinnedMeshRenderer>();
- if(currentItem!=null)
- {
- currentItem.SetBlendShapeWeight(AdjusIndex, AdjustValue);
- }
- }
- }
|