proletariatgames / CUDLR

⛔️ [DEPRECATED] Console for Unity Debugging and Logging Remotely

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Application.RegisterLogCallback deprecated

xrix4096 opened this issue · comments

commented

Unity 5 uses an event instead so in OnEnable() in Server.cs

Application.RegisterLogCallback(Console.LogCallback);

should become

Application.logMessageReceived += Console.LogCallback;

and OnDisable() replace

Application.RegisterLogCallback(null);

with

Application.logMessageReceived -= Console.LogCallback;

Can fork and do a PR if that helps

commented

Just noticed @AustinSpafford already submitted a PR for this

Thanks for reaching out! I merged #24