Class PositionSliceModifier
Modifies the position of the GameObject
, as if its position vector is being sliced.
Inherited Members
Namespace: Slicer
Assembly: 27Slicer.dll
Syntax
[ExecuteAlways]
[DisallowMultipleComponent]
[AddComponentMenu("Slicer/Position Slice Modifier")]
[HelpURL("https://slicer.deftly.games/manual/components/position_slice_modifier.html")]
public class PositionSliceModifier : SliceModifier
Examples
Fields
Name | Description |
---|---|
Anchor | The anchor (offset) position to be used by this modifier. |
Properties
Name | Description |
---|---|
OriginalPosition | The original position of the Game Object |
SlicedPosition | The sliced position 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. |
SetUnslicedPosition(Vector3) | Sets the position of the Game Object before slicing. |