Plugin Class

 

About Plugin Class

 

Plugin class is mainly used for initializing and deinitializing Giavapps Windows API library but also for retrieving information about the extension.

 

Plugin Class Methods

 

Plugin.Initialize() method initializes Giavapps Windows API library. This function should be called before any other function (usually inside Awake() or Start() methods).

 

Plugin.Deinitialize() method deinitializes Giavapps Windows API library. This function should be called for freeing memory used (usually inside OnApplicationQuit() method).

 

Code Example

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Giavapps.Windows.API;

public class CodeExample : MonoBehaviour
{

void Start()
{
Plugin.Initialize();//Initializes Giavapps Windows API
}

void Update()
{
//Other function calls could be here…
}

void OnApplicationQuit()
{
Plugin.Deinitialize();//Deinitializes Giavapps Windows API
}

}

 

Plugin Class Members

 

Plugin.Name member contains a string that identifies the name of the external library loaded by Unity software. Note that you can manually change the name to "GiavappsWindowsAPI_x86" (if you are using a 32-bit version of the Unity Editor) or keep "GiavappsWindowsAPI_x64" (if you are using a 64-bit version of the Unity Editor).

 

Plugin.Version member contains a string that identifies the version of the Giavapps Windows API extension. Note that you shouldn’t edit this value.

 

Code Example

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Giavapps.Windows.API;

public class CodeExample : MonoBehaviour
{

void Start()
{
Debug.Log("PLUGIN NAME: "+Plugin.Name);
Debug.Log("PLUGIN VERSION: "+Plugin.Version);
}

}

 

I am Luigi Piscopo, also known as DJ GiDeejay / Producer / Remixer in the music world. I am a Producer with a lot of experience in photo editing, video editing, audio editing, graphic design, web design, programming and promotion.

Comments are closed.