Class DeformerVisibilityEvent.Before

java.lang.Object
dev.turboism.sdk.cubism.event.DeformerVisibilityEvent.Before
All Implemented Interfaces:
DeformerVisibilityEvent, EventBus.TurboismEvent, TurboismEvent
Enclosing interface:
DeformerVisibilityEvent

public static final class DeformerVisibilityEvent.Before extends Object implements DeformerVisibilityEvent
Synchronous state published before the host visibility write.
  • Constructor Details

    • Before

      public Before(Deformer deformer, boolean requestedVisible, boolean visible)
  • Method Details

    • openCallback

      public static DeformerVisibilityEvent.Before.Callback openCallback(Deformer deformer, boolean requestedVisible, boolean visible)
      Opens a callback-scoped mutable candidate for the intercepted visibility edit.
    • deformer

      public Deformer deformer()
      Description copied from interface: DeformerVisibilityEvent
      Returns the detached Deformer projection participating in the operation.
      Specified by:
      deformer in interface DeformerVisibilityEvent
    • requestedVisible

      public boolean requestedVisible()
      Returns the visibility value originally requested by the write call.
    • visible

      public boolean visible()
      Returns the candidate visibility value that will be applied.
    • setVisible

      public void setVisible(boolean visible)
      Replaces the candidate visibility value for the current callback.