I built my project and it works just fine on my laptop and I copied my database and it’s working and I have written a the database path correctly so that it can be detected if placed on other laptops, I copied my game to another laptop and the database path was detected correctly but the database couldn’t be accessed why? How can I fix this?
Plus How can I display an image when the game is starting I used the splash image but it didn’t work,please help hope that those are my last problems.
Thank you!!
can anyone help me please!!
Which database are you referring to?
Hey It’s a SQLite database but thank you I found the problem my database name is PJI Game.s3db on my laptop and on the other laptops it’s PJI Game so I just modified its name in my scripts to PJI Game and it worked on all the laptops.
Thank you.
But do you know how can I add an image when the game is loading cz I used the splash image it didn’t work!!
hi I thought that this worked but it didn’t I must add the extension so how can I fix this on the other laptops?
No need to thank me as I did absolutely nothing
As to the splash images there are a lot of ways to do this. One quick example:
SomeScript.cs
[SerializeField]
private bool _ShowSplashImage;
[SerializeField]
private float _SplashImageTimeS = 2;
public IEnumerator Start()
{
_ShowSplashImage = true;
yield return new WaitForSeconds(_SplashImageTimeS);
_ShowSplashImage = false;
}
void OnGUI()
{
if(_ShowSplashImage)
{
GUI.DrawTexture(new Rect(0, 0, Screen.width, Screen.height), TextureToDraw);
}
}
OK thank you I’m gonna use this