Giter Site home page Giter Site logo

cobzarugabriel / unitypausemenu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from greatarcstudios/unitypausemenu

1.0 1.0 0.0 25.94 MB

This is an open source Unity pause menu created for the game New Horizons, and it's completely free because of how a pause menu is a core component of a game, while the unity asset store was lacking in such an asset (until this was released on the asset store).

Home Page: http://unitypausemenu.weebly.com/

License: MIT License

C# 100.00%

unitypausemenu's Introduction

alt text ##Setup Just drag the pause menu prefab from the prefab folder into your scene, and then bring it into view by editing the x value of the PREFAB to 0 , y to 0 and Z to 0. ##Updating Completely delete the pause menu folder and install the new version.

If you have a custom prefab or manager you can always keep that version in a different folder and merge the changes from there. ##Things to note Assign the main cam obj as the camera with your image effects like DOF and AO.

The docs are located here: https://github.com/GreatArcStudios/UnityPauseMenuDocs

Joystick/Controller support

Using a joystick/controller should work fine. Just remeber to change the highlighted dropdown to Joystick. alt text

Enbaling pause blur

First, make sure you have the unity image effects package. Then follow the next few steps.

Uncomment the following variable declarations found starting at line 270

 //Blur Variables
 //Blur Effect Script (using the standard image effects package) 
 public Blur blurEffect;
 //Blur Effect Shader (should be the one that came with the package)
 public Shader blurEffectShader;
 //Boolean for if the blur effect was originally enabled
 public Boolean blurBool;

Find and uncomment the following code found starting at line 349 ```csharp //set the blur boolean to false; blurBool = false; //Add the blur effect mainCamObj.AddComponent(typeof(Blur)); blurEffect = (Blur)mainCamObj.GetComponent(typeof(Blur)); blurEffect.blurShader = blurEffectShader; blurEffect.enabled = false; ```
Uncomment the following code found starting at line 382 . ```csharp if (blurBool == false) { blurEffect.enabled = false; } else { //if you want to add in your own stuff do so here return; } ```
Uncomment the following code found starting at line 465 . ```csharp if (blurBool == false) { blurEffect.enabled = true; } ``` And that's it. Just a few steps to enable a blury background on your pause menu!

unitypausemenu's People

Contributors

greatarcstudios avatar cobzarugabriel avatar

Stargazers

 avatar

Watchers

James Cloos avatar

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.