/// <summary> /// Updates sorting mode. /// </summary> /// <param name="newSortingMode">New sorting mode.</param> internal void OnControllerSortingModeDidChange(CubismSortingMode newSortingMode) { SortingMode = newSortingMode; ApplySorting(); }
/// <summary> /// Checks whether a mode sorts by order. /// </summary> /// <param name="self">Mode to query.</param> /// <returns><see langword="true"/> if mode sorts by order; <see langword="false"/> otherwise.</returns> public static bool SortByOrder(this CubismSortingMode self) { return(!self.SortByDepth()); }
/// <summary> /// Checks whether a mode sorts by depth. /// </summary> /// <param name="self">Mode to query.</param> /// <returns><see langword="true"/> if mode sorts by depth; <see langword="false"/> otherwise.</returns> public static bool SortByDepth(this CubismSortingMode self) { return(self == CubismSortingMode.BackToFrontZ || self == CubismSortingMode.FrontToBackZ); }