public void UpdateSkinnedMeshApproximateBounds() { if (_ValidateForUpdateSkinnedMeshBounds()) { meshCombiner.UpdateSkinnedMeshApproximateBounds(); } }
public void UpdateSkinnedMeshApproximateBounds() { if (outputOption == MB2_OutputOptions.bakeMeshAssetsInPlace) { Debug.LogWarning("Can't UpdateSkinnedMeshApproximateBounds when output type is bakeMeshAssetsInPlace"); return; } if (resultSceneObject == null) { Debug.LogWarning("Result Scene UnityEngine.Object does not exist. No point in calling UpdateSkinnedMeshApproximateBounds."); return; } SkinnedMeshRenderer smr = resultSceneObject.GetComponentInChildren <SkinnedMeshRenderer>(); if (smr == null) { Debug.LogWarning("No SkinnedMeshRenderer on result scene object."); return; } meshCombiner.UpdateSkinnedMeshApproximateBounds(); }