Disable GUI layout on Unity key receiver to avoid GC.
This commit is contained in:
@@ -49,6 +49,9 @@ namespace Cryville.Common.Unity.Input {
|
||||
Callback = h;
|
||||
}
|
||||
public abstract string GetKeyName(int type);
|
||||
void Awake() {
|
||||
useGUILayout = false;
|
||||
}
|
||||
void Update() {
|
||||
double time = Time.realtimeSinceStartupAsDouble;
|
||||
foreach (var k in Keys) {
|
||||
|
Reference in New Issue
Block a user