MustNotBeNullWhenAttribute

Class in Yarn.Unity

Inherits from YarnEditorAttribute

Summary

Shows an error message box if this property is null and the variable indicated by Condition is false.

public class MustNotBeNullWhenAttribute : YarnEditorAttribute

Properties

Name
Description

The name of another property on this object to compare to. This variable must be either a boolean value, or a UnityEngine.Object reference.

The text of the error message to show if the property is null and the condition is met. If not provided, a generic error message is shown.

Last updated

Yarn Spinnerยฎ and Secret Labยฎ are trade marks of Secret Lab Pty. Ltd., and are used by Yarn Spinner Pty. Ltd. under license.