27 Slicer 27 Slicer
Search Results for

    Show / Hide Table of Contents

    Class ScaleSliceModifier

    Modifies the scale of the GameObject, as if its scale vector is being sliced.

    Inheritance
    Object
    Object
    Component
    Behaviour
    MonoBehaviour
    SliceModifier
    ScaleSliceModifier
    Inherited Members
    SliceModifier.ModifierEnabled
    SliceModifier.DoNotUpdateInPlayMode
    SliceModifier.ShouldUpdate()
    SliceModifier.GetParentSlicerController()
    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



    REFERENCE MANUAL

    Properties

    NameDescription
    OriginalScale

    The original scale of the Game Object

    SlicedScale

    The sliced scale of the Game Object

    Methods

    NameDescription
    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)
      ☀
      ☾
      In This Article
      Back to top
      27 Slicer documentation | Copyright 2021 Deftly Games
      ☀
      ☾