Skip to main content

PlayerGrabbedPrefab

A class in Root.Township, ATT.MicroTutorial.Steps.

Micro tutorial step that completes when the player grabs a given prefab.

Constructors​

MemberWhat it is
PlayerGrabbedPrefab()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

2 private and internal fields
MemberWhat it is
private NetworkPrefab prefabToGrabThe prefab the player has to pick up.
private static readonly Type[] requiredEventTypesBacking array for RequiredPlayerEventTypes.

Properties​

MemberWhat it is
override IEnumerable<Type> RequiredPlayerEventTypes { get; }Only PlayerGrabbedPrefabEvent.

Methods​

MemberWhat it is
override bool IsCompletedByEvent(IPlayerEvent eventInfo)True for a PlayerGrabbedPrefabEvent whose prefab hash matches prefabToGrab.
override IResult IsConfigurationValid()Errors if no prefab is set.