So basiclly i need somehow to create Guid but Unity doesn’t creating it.
code looks like this
private Guid _id;
private void Awake()
{
_id = new Guid();
}
And its creating only this Guid:
So basiclly i need somehow to create Guid but Unity doesn’t creating it.
code looks like this
private Guid _id;
private void Awake()
{
_id = new Guid();
}
And its creating only this Guid:
Have you tried:
_id = Guid.NewGuid();
Did you try this? It’s the second Google result of “Unity guid”
This seems to work
But is Guid Serializable in Unity? Cuz it seems to be empty json string when I serialize this created Guid. Im using JsonUtility by Unity
Again, something extremely easy to find the result to with a search engine. Here’s a link to a thread about it.
https://answers.unity.com/questions/340997/unity-doesnt-store-guid-field.html
The answer is no.
Yes, I just ToString() this Guid and store this as string, Thanks for help!