Свойство | Type | Description | |
---|---|---|---|
loadSceneOnBackgroundThread | bool | ||
onScreenObscured | System.Action | ||
previousSceneRender | |||
wantsPreviousSceneRender | bool |
Свойство | Type | Description | |
---|---|---|---|
_isNewSceneLoaded | bool | ||
sceneLoadAction | Func |
Свойство | Type | Description |
---|
Méthode | Description | |
---|---|---|
onBeginTransition ( ) : IEnumerator |
called after the previousSceneRender occurs for the first (and only) time. At this point you can load your new Scene after yielding one frame (so the first render call happens before scene loading).
|
|
preRender ( |
called before the Scene is rendered. This allows a transition to render to a RenderTarget if needed and avoids issues with MonoGame clearing the framebuffer when a RenderTarget is used.
|
|
render ( |
do all of your rendering here
|
|
tickEffectProgressProperty ( |
the most common type of transition seems to be one that ticks progress from 0 - 1. This method takes care of that for you if your transition needs to have a _progress property ticked after the scene loads.
|
Méthode | Description | |
---|---|---|
SceneTransition ( Func |
||
SceneTransition ( bool wantsPreviousSceneRender = true ) : System | ||
loadNextScene ( ) : IEnumerator | ||
transitionComplete ( ) : void |
this should be called when your transition is complete and the new Scene has been set. It will clean up
|
protected SceneTransition ( Func |
||
sceneLoadAction | Func |
|
wantsPreviousSceneRender | bool | |
Résultat | System |
protected SceneTransition ( bool wantsPreviousSceneRender = true ) : System | ||
wantsPreviousSceneRender | bool | |
Résultat | System |
public preRender ( |
||
graphics | Graphics. | |
Résultat | void |
public render ( |
||
graphics | Graphics. | |
Résultat | void |
public tickEffectProgressProperty ( |
||
effect | ||
duration | float | duration |
easeType | EaseType | |
reverseDirection | bool | if true, _progress will go from 1 to 0. If false, it goes form 0 to 1 |
Résultat | IEnumerator |
public bool loadSceneOnBackgroundThread | ||
Résultat | bool |
public RenderTarget2D,Microsoft.Xna.Framework.Graphics previousSceneRender | ||
Résultat |