|
|
|
|
|
|
} |
|
|
|
|
|
|
|
s.data.Apply(); |
|
|
|
|
|
|
|
EditorUtility.SetDirty(sourceAsset); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
positive = blendDistancePositive; |
|
|
|
negative = blendDistanceNegative; |
|
|
|
|
|
|
|
EditorUtility.SetDirty(sourceAsset); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
s.data.sphereBlendDistance.floatValue = Mathf.Clamp(s.data.sphereBlendDistance.floatValue, 0, radius); |
|
|
|
s.data.sphereBlendNormalDistance.floatValue = Mathf.Clamp(s.data.sphereBlendNormalDistance.floatValue, 0, radius); |
|
|
|
s.data.Apply(); |
|
|
|
|
|
|
|
EditorUtility.SetDirty(sourceAsset); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
Undo.RecordObject(sourceAsset, "Modified Influence volume"); |
|
|
|
|
|
|
|
radius = Mathf.Clamp(baseRadius - b.radius, 0, baseRadius); |
|
|
|
|
|
|
|
EditorUtility.SetDirty(sourceAsset); |
|
|
|
} |
|
|
|
} |
|
|
|
} |