Code Monkey home page Code Monkey logo

unity-message-box's Introduction

Unity-Message-Box

自制的消息提示框。

首先导入MessageBox,再把Prefabs里的MessageBox拖到Canvas下即可。

导入后无需禁用messageBox,在启动游戏后脚本会调用HideImmadietly()自动隐藏。

之后在需要的地方使用MessageBox._instance.Show()即可显示消息框.

使用MessageBox._instance.Hide()即可隐藏消息框。

使用MessageBox._instance.AddMessage("内容");即可添加内容,在字符串后添加\n字符即可换行.

按tab可关闭和开启消息提示框

在显示消息六秒后会自动隐藏

unity-message-box's People

Contributors

15so42 avatar

Stargazers

Rich Stark avatar  avatar

Watchers

James Cloos avatar

Forkers

jianjinggy

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.