Skip to main content

PrefabInPositionStep

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

Micro tutorial step that completes when one of the listed prefabs enters a PrefabInPositionObserver in its dynamic content.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private static readonly Type[] requiredEventTypesBacking array for RequiredPlayerEventTypes.
private NetworkPrefab[] validPrefabsPrefabs that complete the step when placed in the trigger.

Properties​

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

Methods​

MemberWhat it is
override bool IsCompletedByEvent(IPlayerEvent eventInfo)True for a PrefabInPositionEvent whose prefab hash matches a listed prefab.
override IResult IsConfigurationValid()Checks dynamic content and prefabs. The prefab check is inverted, so a filled list reports an error.