Closed moepi2k closed 9 hours ago
Did you try to close unity and reopen it?
You may try to replace codes in BaseGameData
[Tooltip("Game data ID, if this is empty it will uses file's name as ID")]
[SerializeField]
protected string id = string.Empty;
public virtual string Id
{
get { return string.IsNullOrEmpty(id) ? (this == null ? string.Empty : name) : id; }
set { id = value; }
}
I don't know how is your scriptable object instance is empty, do you have any scripts which create game data instance at runtime ?
yes even removed whole library folder, thoguht there is a serialization issue.
no most of my custom scriptables have just custom conditions like https://gyazo.com/2f107e030069a409ca1d5c821927e089
Try what I've told you
You may try to replace codes in
BaseGameData
[Tooltip("Game data ID, if this is empty it will uses file's name as ID")] [SerializeField] protected string id = string.Empty; public virtual string Id { get { return string.IsNullOrEmpty(id) ? (this == null ? string.Empty : name) : id; } set { id = value; } }
I don't know how is your scriptable object instance is empty, do you have any scripts which create game data instance at runtime ?
this is working but then im wondering why i have empty data..
Maybe just an empty ref to any game data scripts
ok i will check thx
updated project to 190 and when i click play (not even in home screen) i get this error
https://gyazo.com/b2bc69ebf99fe38172d6bcddfe96a10b
when i click the error it shows my diffren scriptable which not even have something todo with that script. i removed the script and then i just spam the same error with another script.