Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
paultapper's avatar
paultapper
Explorer
5 years ago
Solved

Cloud Storage V2: How do i use it in Unity?

Hi I want to use Cloud Storage 2 for my Oculus Quest 2 Unity game.  I have read https://developer.oculus.com/documentation/unity/ps-cloud-storage/?locale=en_GB but I can't figure out how to use Pla...
  • sSvvSs's avatar
    5 years ago

    I think you need to use it like that:

    Platform.CloudStorage2.GetUserDirectoryPath().OnComplete(res=> {
    	if (res.IsError) {
    		Debug.LogError(res.GetError().Message);
    	} else {
    		Debug.LogError(res.GetString());
    	}
    });

    res.GetString() should contain path that you need, but I can't test it for sure, because I'm getting another error right now 😞