proletariatgames / CUDLR

⛔️ [DEPRECATED] Console for Unity Debugging and Logging Remotely
MIT License
166 stars 34 forks source link

Application.RegisterLogCallback deprecated #25

Closed xrix4096 closed 7 years ago

xrix4096 commented 7 years ago

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

xrix4096 commented 7 years ago

Just noticed @AustinSpafford already submitted a PR for this

joemukai commented 7 years ago

Thanks for reaching out! I merged #24