Leaderboard not submitting score — Oculus
Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

Leaderboard not submitting score

ki7aki7a Posts: 42 Oculus Start Member
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!

Comments

  • ki7aki7a Posts: 42 Oculus Start Member
    OK. found it, it was actually the Entitlement check.
Sign In or Register to comment.