Difference between revisions of "Unity plugin documentation"

From GURaaS Developer Community
Line 17: Line 17:
<br />
<br />
<syntaxhighlight lang="c#" line="1" start="1">
<syntaxhighlight lang="c#" line="1" start="1">
using GLogUnity;
GLog.StartSession();
GLog.StartSession();
GLog.Log(VerboseLevel.DEBUG, "tag1", "tag2", "data");
GLog.Debug("Test");
GLog.Info("Test");
GLog.CloseSession();
</syntaxhighlight>
</syntaxhighlight>

Revision as of 11:49, 17 April 2020

This page describes how to set up and use the GURaaS logging plugin for unity.


installing the plugin


  1. Download the plugin unity asset TODO: download link.
  2. Import the plugin into unity (Assets -> Import Package -> Custom Package...).
  3. Your project should now have the following additional assets:
  4. Select the GLogConfig asset and set the Game Unique Id to the Id assigned to the game on the GURaaS portal.
  5. The plugin is now set up and ready to use!


Your first log


using GLogUnity;

GLog.StartSession();
GLog.Log(VerboseLevel.DEBUG, "tag1", "tag2", "data");
GLog.Debug("Test");
GLog.Info("Test");
GLog.CloseSession();