roboryantron/UnityEditorJunkie
소개
Unity Editor 작업을 더 편리하게 만드는 에디터 스크립트입니다.
게임 및 에뮬레이션측정된 스타 증가
- in 24h
- -1
- in 7 days
- -1
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalUnityEditorJunkie
Unity code that gets you that sweet editor scripting fix. Unity did a pretty good job building out a massive editor... but there are a few holes. Lets fill them one by one.
SearchableEnum
Use the SearchableEnumAttribute on an enum to get an improved enum selector popup. This has a text search box to filter the list, scrolls like a real scroll list, works with keyboard navigation, and focuses on the current selection when opening.
Use it on something like Unity's KeyCode to be less likley to want to kill yourself when trying to pick something at the bottom of the list.
Example
public class SearchableEnumDemo : ScriptableObject
{
[SearchableEnum]
public KeyCode AwesomeKeyCode;
}

SceneReference
Loading a scene in Unity normally requires a string name or index which can easily break. By using a SceneReference on your MonoBehaviour, you can hard reference a scene and get validation features.
QuickButtons
Draw buttons in the inspector without writing any editor code.
Example
public class QuickButtonsDemo : MonoBehaviour
{
/// <summary>
/// This draws a button in the inpsector that calls
/// OnDebugButtonClicked on click.
/// </summary>
public QuickButton NameButton = new QuickButton("OnDebugButtonClicked");
/// <summary>
/// This draws a button in the inpsector that invokes a
/// delegate on click.
/// </summary>
public QuickButton DelegateButton = new QuickButton(input =>
{
QuickButtonsDemo demo = input as QuickButtonsDemo;
Debug.Log("Delegate Button Clicked on " + demo.gameObject.name);
});
private void OnDebugButtonClicked()
{
Debug.Log("Debug Button Clicked");
}
}

관련 프로젝트 살펴보기
불러오는 중…