mirror of
https://github.com/maxartz15/MA_TextureAtlasser.git
synced 2024-11-13 00:55:33 +01:00
max
e81a4ec119
Implemented the texture scaler provided by goto01 (Kiryl Tkachou) and removed the old ones. Implmented the mesh export bugfixes. Changed mesh export names. Changed texture export names. Updated the the export window. Updated export functionality. Updated hotkeys. Fixed quad duplication bug. Minor visual changes. Co-Authored-By: Kiryl Tkachou <goto01@users.noreply.github.com>
40 lines
993 B
C#
40 lines
993 B
C#
#if UNITY_EDITOR
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEditor;
|
|
using MA_Editor;
|
|
|
|
namespace MA_TextureAtlasserPro
|
|
{
|
|
[System.Serializable]
|
|
public class MA_TextureAtlasserProSettings : ScriptableObject
|
|
{
|
|
[Header("Hotkeys:")]
|
|
public bool useHotkeys = false;
|
|
public EventModifiers modifierKey = EventModifiers.Alt;
|
|
public KeyCode addQuadHotKey = KeyCode.Q;
|
|
public KeyCode removeQuadHotKey = KeyCode.R;
|
|
public KeyCode duplicateHotKey = KeyCode.D;
|
|
public KeyCode zoomInHotKey = KeyCode.Equals;
|
|
public KeyCode zoomOutHotKey = KeyCode.Minus;
|
|
|
|
[Header("Duplication:")]
|
|
public bool copySelectedQuadData = true;
|
|
public string duplicatedQuadNamePrefix = "new ";
|
|
|
|
[Header("Selection")]
|
|
public bool autoFocus = true;
|
|
|
|
public bool GetHotKey(Event e, KeyCode shortKey)
|
|
{
|
|
if (e.type == EventType.KeyDown && e.modifiers == modifierKey && e.keyCode == shortKey)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
#endif |