override error
Options
nefertu
✭
Hello there. I'm new to Bolt. It progresses with the documentation, but I get an error. I am sharing the error and codes here. I would be very happy if you could help
error: Assets\Tutorial\Scripts\NetworkCallbacks.cs(10,26): error CS0115: 'NetworkCallbacks.LoadScene(string)': no suitable method found to override
using UnityEngine; using System.Collections; using Photon.Bolt; public class NetworkCallbacks : GlobalEventListener { public override void SceneLoadLocalDone(string scene) { // randomize a position var spawnPosition = new Vector3(Random.Range(-16, 16), 0, Random.Range(-16, 16)); // instantiate cube BoltNetwork.Instantiate(BoltPrefabs.Cube, spawnPosition, Quaternion.identity); } }
error: Assets\Tutorial\Scripts\NetworkCallbacks.cs(10,26): error CS0115: 'NetworkCallbacks.LoadScene(string)': no suitable method found to override
0
Best Answer
-
We need to update the documentation for that page. See the official reference https://github.com/BoltEngine/Bolt-Sample/blob/master/GettingStarted/Scripts/NetworkCallbacks.cs0
Answers
-
Sorry, I accidentally deleted your solution!
I marked it as "Accepted Answer" (to complete the Q&A here) and that made it show up twice. I didn't see one was the "Best Answer" and below it was the usual list of replies. So I thought it's a duplicate...
Maybe you can post the fix once more?0 -
We need to update the documentation for that page. See the official reference https://github.com/BoltEngine/Bolt-Sample/blob/master/GettingStarted/Scripts/NetworkCallbacks.cs0