百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
U

unitypausemenu

> 开发工具
开源

这是一个为游戏《新视界》创建的 开源 Unity 暂停菜单,由于暂停菜单是游戏的核心组件,因此它是完全免费的。

200 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

这是一个为游戏《新视界》创建的 开源 Unity 暂停菜单,由于暂停菜单是游戏的核心组件,因此它是完全免费的。

Unrelated request: please check out my new asset uDocumentGenerator

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

  1. Assign the main cam obj as the camera with your image effects like DOF and AO.
  2. The docs are located here: https://github.com/GreatArcStudios/UnityPauseMenuDocs
  3. Special note for 5.4 and above: you may ignore the Coroutine Utlities folder and or update the script due to Unity 5.4's (and above) addition of a WaitForSecondsRealTime method.

Joystick/Controller support

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

Enabling 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

csharp
 //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!

Issues· 2 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#c-sharpdot-netgamegame-development

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具