/// <summary> /// Gets the ARToolKit version as a string, such as "4.5.1". /// Must not be called prior to arwInitialiseAR(). /// </summary> /// <returns>true if successful, false if an error occurred.</returns> public string arwGetARToolKitVersion() { StringBuilder sb = new StringBuilder(128); bool ok; ok = ARNativePlugin.arwGetARToolKitVersion(sb, sb.Capacity); if (ok) { return(sb.ToString()); } else { return("unknown"); } }
public static string arwGetARToolKitVersion() { StringBuilder sb = new StringBuilder(128); bool ok; if (Application.platform == RuntimePlatform.IPhonePlayer) { ok = ARNativePluginStatic.arwGetARToolKitVersion(sb, sb.Capacity); } else { ok = ARNativePlugin.arwGetARToolKitVersion(sb, sb.Capacity); } if (ok) { return(sb.ToString()); } else { return("unknown"); } }