I want to work entirely inside Visual Studio. The Xenko Studio looks nice, but it’s not for me.
I added a new file- GameScript.cs to the MyGame.Game project and made a SyncScript.
using SiliconStudio.Xenko.Engine;
using System;
namespace MyGame
{
public class GameScript : SyncScript
{
public override void Start()
{
throw new Exception("Get here at least?");
}
public override void Update()
{
}
}
}
I put a breakpoint inside the Start method but it never hits. I see in the documentation that the script files needs to be dragged to the scene but it can also be done programatically-
myEntity.Add(new myAsyncScript());
However, I don’t know what the entry file is. I looked at the sample projects like JumpyJet and see they have scripts, but I don’t see how those scripts are added, I assume through the drag-and-drop method.
How do I add scripts to the game outside of the xenko studio?