Class ScaleSliceModifier
Modifies the scale of the GameObject
, as if its scale vector is being sliced.
Inherited Members
Namespace: Slicer
Assembly: 27Slicer.dll
Syntax
[ExecuteAlways]
[DisallowMultipleComponent]
[AddComponentMenu("Slicer/Scale Slice Modifier")]
[HelpURL("https://slicer.deftly.games/manual/components/scale_slice_modifier.html")]
public class ScaleSliceModifier : SliceModifier
Remarks
Currently this is a very simple calculation. It does not take into consideration if parts of the object being scaled lays outside of the sliced bounds.
This simple method should be correct or close enough most of the time.
Examples
Properties
Name | Description |
---|---|
OriginalScale | The original scale of the Game Object |
SlicedScale | The sliced scale of the Game Object |
Methods
Name | Description |
---|---|
DisableModifier() | Disables this Slice Modifier. |
EnableModifier() | Enables this Slice Modifier. |
FinalizeSlicing() | Finalizes slicing for this Slice Modifier. |
GatherDetails() | Gathers details required for applying this modification. |
Modify(Vector3, Transform, Bounds, Bounds) | Applies the modification to the tracked items. |
SetUnslicedScale(Vector3) |