Nez.Portable/ECS/Scene.cs
/// <summary>
/// sets the default design size and resolution policy that new scenes will use. horizontal/verticalBleed are only relevant for BestFit.
/// </summary>
/// <param name="width">Width.</param>
/// <param name="height">Height.</param>
/// <param name="sceneResolutionPolicy">Scene resolution policy.</param>
/// <param name="horizontalBleed">Horizontal bleed size. Used only if resolution policy is set to <see cref="SceneResolutionPolicy.BestFit"/>.</param>
/// <param name="verticalBleed">Vertical bleed size. Used only if resolution policy is set to <see cref="SceneResolutionPolicy.BestFit"/>.</param>
sets the default design size and resolution policy that new scenes will use. horizontal/verticalBleed are only relevant for BestFit.
sets the default design size and resolution policy that new scenes will use . horizontal / verticalBleed are only relevant for BestFit .
public static void SetDefaultDesignResolution(
            int width,
            int height,
            SceneResolutionPolicy sceneResolutionPolicy,
            int horizontalBleed = 0,
            int verticalBleed = 0)
        {
            _defaultDesignResolutionSize = new Point(width, height);
            _defaultSceneResolutionPolicy = sceneResolutionPolicy;
            if (_defaultSceneResolutionPolicy == SceneResolutionPolicy.BestFit)
                _defaultDesignBleedSize = new Point(horizontalBleed, verticalBleed);
        }
public static void SetDefaultDesignResolution ( int width , int height , SceneResolutionPolicy sceneResolutionPolicy , int horizontalBleed = 0 , int verticalBleed = 0 ) { _defaultDesignResolutionSize = new Point ( width , height ) ; _defaultSceneResolutionPolicy = sceneResolutionPolicy ; if ( _defaultSceneResolutionPolicy == SceneResolutionPolicy . BestFit ) _defaultDesignBleedSize = new Point ( horizontalBleed , verticalBleed ) ; }
sets the default design size and resolution policy that new scenes will use.
sets the default design size and resolution policy that new scenes will use .
width
int
None
height
int
None
sceneResolutionPolicy
SceneResolutionPolicy
Scene resolution policy.
Scene resolution policy .
horizontalBleed
int
Horizontal bleed size. Used only if resolution policy is set to .
Horizontal bleed size . Used only if resolution policy is set to .
verticalBleed
int
Vertical bleed size. Used only if resolution policy is set to .
Vertical bleed size . Used only if resolution policy is set to .