Giter Site home page Giter Site logo

codesmile-0000011110110111 / unityresolutiondialog Goto Github PK

View Code? Open in Web Editor NEW
111.0 8.0 20.0 162 KB

Replacement for Unity's built-in resolution dialog (aka Screen Selector) that was removed in Unity 2019.3. Works both up front (simply make it the first scene) and as a popup dialog (default key: ESC). Intended for development / testing purposes but can also be used in production.

License: MIT License

C# 100.00%

unityresolutiondialog's Introduction

UnityResolutionDialog

Example Image

Replacement for Unity's built-in resolution dialog (aka Screen Selector) that was removed in Unity 2019.3. Works both up front (simply make it the first scene) and as a popup dialog (default key: ESC). Intended for development / testing purposes but can also be used in production.

Installation

Add this dependency to your manifest.json located at /Packages/manifest.json:

{
    ...
    "dependencies": {
        ...
        "com.sitterheim.unityresolutiondialog": "https://github.com/sitterheim/UnityResolutionDialog.git#release/stable"
    }
    ...
}

unityresolutiondialog's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

unityresolutiondialog's Issues

Setting Monitor doesnt work

Tested on Linux with setting monitor.

Other things to note:
Have to have UI materials in the project
Have to use old input system?
Have to disable one of the scripts to test it originally if you just want to test functionality

Failure to install via package via readme instructions (bad branch name?)

Added to manifest.json like so:

    "com.sitterheim.unityresolutiondialog": "https://github.com/sitterheim/UnityResolutionDialog.git#release/stable",

Unity gives an error:

An error occurred while resolving packages:

Project has invalid dependencies:
com.sitterheim.unityresolutiondialog: [https://github.com/sitterheim/UnityResolutionDialog.git#release/stable] does not point to a valid package repository. No package manifest was found. Verify the repository URL and make sure the package is located in the root folder of the repository.

A re-import of the project may be required to fix the issue or a manual modification of C:/code/project/Packages/manifest.json file.

Reimport All results in the same error.

Workaround

Track master instead of the stable branch:

    "com.sitterheim.unityresolutiondialog": "https://github.com/sitterheim/UnityResolutionDialog.git",

Since the branches are currently identical, I assume the issue is the / in the branch name. Branches definitely work since dbrizov/NaughtyAttributes uses a upm branch and I use this in unity-vimeditor with a latest-release branch.

Unity 2019.4.16 on Win10 x64.

Popup before starting game

Hello there , I was wondering if there is a way to make this Dialog to open once I click on the .exe file with that I mean before the game starts like the old resolution dialog? cause I've been trying the script and it only works after I enter the game.
Thanks !

GUID Conflict with HDRP package

unityresolutiondialog/Scenes/SampleScene.unity.meta has the same GUID, conflicting with High Definition RP/7.1.8/Particle System Shader Samples/Scenes/ParticleShaderGraphsSampleScene.unity.meta.

GUID [9fc0d4010bbf28b4594072e72b8655ab] for asset 'Packages/com.sitterheim.unityresolutiondialog/Scenes/SampleScene.unity' conflicts with:
  'Assets/Samples/High Definition RP/7.1.8/Particle System Shader Samples/Scenes/ParticleShaderGraphsSampleScene.unity' (current owner)
We can't assign a new GUID because the asset is in an immutable folder. The asset will be ignored.

The error will be spammed repeatedly every time the Editor checks for imports.

Toggling resolution dialogue off leaves its elements in navigation flow

When resolution dialogue is in the scene, but hidden, its elements are still accessible from other menus that have navigation set to automatic.

image

To fix this problem the entire object needs to be disabled, not just the canvas. Probably you'll want to hoist the enable/disable code onto a root object that has the remaining hierarchy as its single child which is toggled on and off.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.