Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tomori-hikage/collider-visualizer
当たり判定の表示デバッグ機能
https://github.com/tomori-hikage/collider-visualizer
c-sharp unity unity3d
Last synced: 3 months ago
JSON representation
当たり判定の表示デバッグ機能
- Host: GitHub
- URL: https://github.com/tomori-hikage/collider-visualizer
- Owner: tomori-hikage
- License: mit
- Created: 2017-09-06T07:56:16.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-14T15:07:50.000Z (almost 6 years ago)
- Last Synced: 2024-05-13T20:57:54.254Z (6 months ago)
- Topics: c-sharp, unity, unity3d
- Language: C#
- Homepage:
- Size: 22.6 MB
- Stars: 75
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-unity-open-source-on-github - collider-visualizer - Collider visualizer (UI Debug)
README
[![license](https://img.shields.io/github/license/tomori-hikage/collider-visualizer.svg?style=flat-square)](https://github.com/tomori-hikage/collider-visualizer/blob/master/LICENSE)
[![release](https://img.shields.io/github/release/tomori-hikage/collider-visualizer.svg?style=flat-square)](https://github.com/tomori-hikage/collider-visualizer/releases)
[![GitHub](https://img.shields.io/github/followers/tomori-hikage.svg?label=@tomori-hikage&style=social)](https://github.com/tomori-hikage)
[![Twitter](https://img.shields.io/twitter/follow/tomori_hikage.svg?label=@tomori_hikage&style=social)](https://twitter.com/tomori_hikage)# collider-visualizer
## Description
collider-visualizerは当たり判定の表示デバッグ機能です
## Demo
![実行結果](https://github.com/tomoriaki/collider-visualizer/blob/readme_images/Images/ss1.gif)
## Install
[releases](https://github.com/tomoriaki/collider-visualizer/releases)からcollider-visualizer.unitypackageをダウンロードしてプロジェクトにインポートしてください
## Example
```csharp
using UnityEngine;
using HC.Debug;///
/// 使用例
///
[DisallowMultipleComponent]
public class Example : MonoBehaviour
{
#region フィールド / プロパティ[SerializeField, Tooltip("可視コライダーの色")]
private ColliderVisualizer.VisualizerColorType _visualizerColor;[SerializeField, Tooltip("メッセージ")]
private string _message;[SerializeField, Tooltip("フォントサイズ")]
private int _fontSize = 36;[SerializeField, Tooltip("左脚")]
private GameObject _leftLeg;#endregion
#region アニメーションイベントメソッド
private void AttackStart()
{
_leftLeg.AddComponent().Initialize(_visualizerColor, _message, _fontSize);
}private void AttackEnd()
{
Destroy(_leftLeg.GetComponent());
}#endregion
}
```![実行結果](https://github.com/tomoriaki/collider-visualizer/blob/readme_images/Images/ss1.gif)
## Use License
[© Unity Technologies Japan/UCL](http://unity-chan.com/contents/license_jp/)