GithubHelp home page GithubHelp logo

timeofzero / unity_lightbeamperformance Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kodai100/unity_lightbeamperformance

0.0 0.0 0.0 630.6 MB

This package can create light beam performance with Unity's timeline functionality.

Home Page: https://pjblue.jp

License: MIT License

C# 89.07% ShaderLab 10.93%

unity_lightbeamperformance's Introduction

Light Beam / Laser Performance Package for Unity

ムービングライト、レーザーの演出を、タイムラインでコントロール可能にするUnity用パッケージです。

thumbnail

timeline

Install With PackageManager

{
  "dependencies": {
    "com.kodai100.light-beam-performance": "https://github.com/ProjectBLUE-000/Unity_LightBeamPerformance.git?path=/Assets/LightBeamPerformance"
  }
}

Usecase

Light Beam

セットアップ方法

ムービングライトの配置

Prefabsフォルダに含まれる、MovingLightプレファブ(以下、灯体)をシーンの好きな位置、好きな方向に配置します。

ムービングライトをグループ化する

LightGroupスクリプトを新規GameObjectへアタッチし、先程追加した灯体を登録します。

group

このオブジェクトの子階層に灯体のオブジェクトをまとめると便利です。

また、グループは複数作成することができ、グループごとに演出を切り分けることが出来ます。

ムービングライト制御用コンポーネントを作成する

ムービングライトを制御するために、LightBeamPerformanceスクリプトを新規GameObjectにアタッチします。

このコンポーネントに先程作成したグループを登録します。

set-group

Timelineにトラックを作成する

Timelineを新規作成した後、LightPerformanceトラックを追加します。 track

トラックのバインディングに、LightBeamPerformanceコンポーネントを追加します。 binding

クリップを作成し、カーソルを動かしてクリップに載せると、クリップの情報を元にムービングライトが動くようになります。 sample

sample2

グループごとにグラデーションをかけることが可能であったり、照明のアニメーションを分けることが可能です。 gradient

備考

LightBeamPerformanceコンポーネントは、複数配置することが可能で、 上部や下部といった分割を行うことで、タイムライン上で演出を分けることが可能です。

multi

multi-bottom

Laser

セットアップ方法

レーザーのセットアップ方法も、ムービングライトのセットアップ方法と全く同一です。 Prefabsから、Laserプレファブを、灯体と同様に配置し、セットアップを行ってください。

laser

Copyright of "Noriben Light Beam"

We used "Noriben Light Beam" shader in this project.

Read the license in the following link.

https://booth.pm/ja/items/1637978

In a nutshell, redistribution is prohibited.

Noriben (Twitter) : https://twitter.com/noriben327

Code License

MIT

unity_lightbeamperformance's People

Contributors

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