- Home /
Question by
TheElumenati · Apr 09, 2020 at 12:12 AM ·
applicationinterop
How do i get the GuidAttribute of a unity3d standalone game.
Not to be confused with the GUID of unity assets, windows applications should have a GUID associated with it. I have tried all of the suggestions on this Stack overflow: https://stackoverflow.com/questions/502303/how-do-i-programmatically-get-the-guid-of-an-application-in-net2-0
An example of code suggested to get the guid for a c# console app is here, but this doesn't work for unity.
using System.Reflection;
using System.Runtime.InteropServices;
string GUID = ((GuidAttribute)Attribute.GetCustomAttribute(Assembly.GetExecutingAssembly(), typeof(GuidAttribute), false)).Value;
Does anyone know how to do this?
Comment
Your answer
Follow this Question
Related Questions
Unity and ComImport 1 Answer
iOS application in the settings panel 3 Answers
How can you use Unity to make an iOS app that's not a game? 0 Answers
Automatic GUI Creation When players are Added. 1 Answer
Unity for CAD applications? 0 Answers