Giter VIP home page Giter VIP logo

ccscenemenu's Introduction

Cocos Creator场景编辑器右键菜单插件

原帖地址: https://forum.cocos.org/t/topic/88435

背景

Cocos Creator的场景编辑器没有自带的右键菜单,也不提供右键菜单的扩展方法(截止目前v2.2.2版)。
关卡编辑时,如果将常用功能登记到右键菜单内,可以避免在主菜单、层级视图、资源视图、场景编辑器之间来回切换,提升效率。
右键菜单创建节点时,可以直接创建到指定位置,提升效率。

代码:https://github.com/caogtaa/CCSceneMenu/tree/master
演示工程:https://github.com/caogtaa/CCSceneMenuDemo

功能介绍

  • 支持通过插件UI编辑场景菜单的内容
  • 支持登记prefab uuid到右键菜单,通过菜单创建该prefab的实例。(prefab uuid在资源视图里右击可以查到)
  • 支持登记自定义命令到右键菜单(填写自己插件的消息和参数),方便开发者扩展

兼容性

  • 插件目前只支持2D场景
  • 支持Cocos Creator v2.2.2,Windows/Mac。其他版本未测试。

效果

场景编辑器
image.gif

菜单管理
image.gif
image.png

如何安装

方法1,手动安装

将源码解压到项目工程的packages目录下(解压后需要有新目录)

方法2,git项目通过submodule安装

git submodule add [email protected]:caogtaa/CCSceneMenu.git packages/CCSceneMenu
git submodule init
git submodule update

ccscenemenu's People

Contributors

caogtaa 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.