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;
|
Callback = h;
|
||||||
}
|
}
|
||||||
public abstract string GetKeyName(int type);
|
public abstract string GetKeyName(int type);
|
||||||
|
void Awake() {
|
||||||
|
useGUILayout = false;
|
||||||
|
}
|
||||||
void Update() {
|
void Update() {
|
||||||
double time = Time.realtimeSinceStartupAsDouble;
|
double time = Time.realtimeSinceStartupAsDouble;
|
||||||
foreach (var k in Keys) {
|
foreach (var k in Keys) {
|
||||||
|
Reference in New Issue
Block a user