U9View.GetHideTransition C# (CSharp) Method

GetHideTransition() public method

public GetHideTransition ( bool force = false ) : U9Transition,
force bool
return U9Transition,
	public virtual U9Transition GetHideTransition( bool force = false ) {
//		if ( !force && !gameObject.activeInHierarchy) {
//			Hide ();
//			return U9T.Null ();
//		}
		if( ( !force && !IsDisplaying ) ) {
			//Debug.LogWarning( name + " already " + State );
			return U9T.Null();
		} else {
			state = ViewState.Hiding;
			U9Transition t = CreateHideTransition(force);
			AddHideTransitionListeners( t );
			return t;
		}
	}
	

Usage Example

Beispiel #1
0
    public U9Transition GetPushViewTransition(U9View newView, bool hideOldView = true, bool force = false, bool hideAfter = false)
    {
        U9View oldView = null;

        if (viewStack.Count > 0)
        {
            oldView = viewStack.Peek();
        }

        viewStack.Push(newView);

        U9Transition hideOldViewTransition = null, displayNewViewTransition = null;

        if (oldView)
        {
            oldView.DisableInteraction();
            if (hideOldView)
            {
                hideOldViewTransition = oldView.GetHideTransition(force);
            }
        }
        displayNewViewTransition = newView.GetDisplayTransition(force);

        if (hideAfter)
        {
            return(U9T.S(displayNewViewTransition, hideOldViewTransition));
        }
        else
        {
            return(U9T.S(hideOldViewTransition, displayNewViewTransition));
        }
    }
All Usage Examples Of U9View::GetHideTransition