We start by adding a private field to an ARKitComponent that will be initialized later on. Let's set this up by going through the following steps:
- In the WhackABox.iOS project, open Game.cs.
- Add a private field that holds an ARKitComponent, as shown in bold in the following code block:
using System.Linq;
using ARKit;
using Urho;
using Urho.iOS;
namespace WhackABox.iOS
{
public class Game : WhackABox.Game
{
protected ARKitComponent arkitComponent;
public Game(ApplicationOptions options) : base(options)
{
}
}
}
Make sure that you add all the using statements to ensure that all the code we later use resolves the correct types.