GithubHelp home page GithubHelp logo

henry-yuxi / quickeditor.monitor Goto Github PK

View Code? Open in Web Editor NEW
15.0 1.0 9.0 175 KB

This package is a Unity editor extension that provides fine-grained event dispatching for Unity asset changes and Unity Editor event changes.

C# 99.65% Batchfile 0.35%

quickeditor.monitor's Introduction

Quick Editor Events Monitor for Unity

Overview

QuickEditor.Monitor是对Unity的编辑器事件、资源导入回调做了二次封装, 使用者不需要关注Unity版本API的修改、删减.

Runtime Environment (运行环境)

Version : Unity 4.x ~ 2020.x

How to use?

Take a look at the sample project provided here for an example.

UnityAssetsWatcher example

QuickAssetWatcher watcher = QuickAssetWatcher.Observe();
watcher.OnAssetCreated.AddListener(asset =>
{
});
watcher.OnAssetDeleted.AddListener(asset =>
{
});
watcher.OnAssetModified.AddListener(asset =>
{
});
watcher.OnAssetMoved.AddListener((before, after) =>
{
});
watcher.OnAssetRenamed.AddListener((before, after) =>
{
});

UnityEditorEventsWatcher example

QuickUnityEditorEventsWatcher watcher = QuickUnityEditorEventsWatcher.Observe();
watcher.EditorApplication.OnUpdate.AddListener(onUpdate);
watcher.SceneView.OnSceneGUIDelegate.AddListener(onSceneViewGUI);
watcher.PrefabUtility.OnPrefabInstanceUpdated.AddListener(OnPrefabInstanceUpdated);

How to install?

UPM Install via manifest.json

In Packages folder, you will see a file named manifest.json.

using this package add lines into ./Packages/manifest.json like next sample:

{
  "dependencies": {
    "com.sourcemuch.quickeditor.monitor": "https://github.com/henry-yuxi/QuickEditor.Monitor.git#0.1.4",
  }
}

Unity 2019.3 Git URL

In Unity 2019.3 or greater, Package Manager is include the new feature that able to install the package via Git.

Open the package manager window (menu: Window > Package Manager), select "Add package from git URL...", fill in this in the pop-up textbox: https://github.com/henry-yuxi/QuickEditor.Monitor.git#0.1.4.

Unity UPM Git Extension (For 2019.2 and older version)

If you doesn't have this package before, please redirect to this git https://github.com/mob-sakai/UpmGitExtension then follow the instruction in README.md to install the UPM Git Extension to your Unity.

If you already installed. Open the Package Manager UI, you will see the git icon around the bottom left connor, Open it then follow the instruction using this git URL to perform package install.

请确保使用的UPM包是最终版本。

Package URL's

Version Link
0.1.4 https://github.com/henry-yuxi/QuickEditor.Monitor.git#0.1.4

See Also

GitHub Page : https://github.com/henry-yuxi/QuickEditor.Monitor/

Issue tracker : https://github.com/henry-yuxi/QuickEditor.Monitor/issues

quickeditor.monitor's People

Contributors

henry-yuxi avatar

Stargazers

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

Watchers

 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.