IRaptorPlaytestProvider
Takes over the editor's Play button in chosen scenes, for example to host a session and spawn your own player.
| Namespace | Assembly | Kind | Stability |
|---|---|---|---|
Raptor.EditorTools | Raptor.Editor | interface | preview, since 0.1.0 |
Register one from an [InitializeOnLoad] class with RaptorPlaytest.Register(new MyProvider());. With no provider registered, no scene is taken over or treated as a hub.
public interface IRaptorPlaytestProviderProperties
DesignScenes
IReadOnlyList<string> DesignScenes { get; }The scenes whose Play this provider takes over, by .unity file name without path or extension. Must not be null.
Enabled
bool Enabled { get; }Whether the provider is on. When false, Play in its scenes is normal Unity Play.
HubScene
string HubScene { get; }The scene the project's real sessions start from. Play in this scene always runs the real game. Null or empty if the project has none.
Id
string Id { get; }A stable id, trimmed and not blank. The first provider registered with an id wins.
Related types
- RaptorPlaytest: The playtest provider registry.