cancel
Showing results for 
Search instead for 
Did you mean: 

Leaderboard not submitting score

ki7a
Protege
Hi. I need help with leaderboards and Unity. I am trying to use the VR hoops example, also with another project and still can't submit a test score.
I am currently trying only a simple score submission, probably doing it all wrong: 

using UnityEngine;
using System.Collections.Generic;
using Oculus.Platform;
using Oculus.Platform.Models;

public class SendScore : MonoBehaviour {
uint scoreTemp = 14; // just an example
// Use this for initialization
void Start () {
SubmitMatchScores (scoreTemp);
}
// Update is called once per frame
void Update () {
}
public void SubmitMatchScores(uint score)
{
Leaderboards.WriteEntry("SurvivalShooter", score);
}
}

So this should only send a test score at the start of the game. I am using Unity, Signed the app and upload as the beta to VR FPS.
The VR hoops example crashed/closed on loading, so I am trying with another project just to test the sending score.
I am not sure if the game needs to be live for the score submission, I hope not... 
I have also downloaded it from the store as a "preview app" of the beta...
I hope this is an easy fix, I am not much of a coder, using mainly Playmaker for game logic, and trying to understand how to integrate the scripts. Maybe I haven't integrated something else, didn't do the Entitlement check yet (maybe this is the issue??)
Thanks!
1 REPLY 1

ki7a
Protege
OK. found it, it was actually the Entitlement check.