유니티 셋팅

This commit is contained in:
2026-03-27 16:34:08 +09:00
parent 474bda26cd
commit d76f078a89
1400 changed files with 116263 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
using UnityEngine;
using System.Collections;
using DigitalOpus.MB.Core;
public class MB2_UpdateSkinnedMeshBoundsFromBones : MonoBehaviour {
SkinnedMeshRenderer smr;
Transform[] bones;
void Start () {
smr = GetComponent<SkinnedMeshRenderer>();
if (smr == null){
Debug.LogError("Need to attach MB2_UpdateSkinnedMeshBoundsFromBones script to an object with a SkinnedMeshRenderer component attached.");
return;
}
bones = smr.bones;
bool origVal = smr.updateWhenOffscreen;
smr.updateWhenOffscreen = true;
smr.updateWhenOffscreen = origVal;
}
void Update () {
if (smr != null){
MB3_MeshCombiner.UpdateSkinnedMeshApproximateBoundsFromBonesStatic(bones,smr);
}
}
}