WarningIfNullAttribute Class |
Namespace: Gamelogic.Extensions
[AttributeUsageAttribute(AttributeTargets.Field)] public class WarningIfNullAttribute : PropertyAttribute
The WarningIfNullAttribute type exposes the following members.
| Name | Description | |
|---|---|---|
| WarningIfNullAttribute |
Initializes a new instance of the WarningIfNullAttribute class.
|
| Name | Description | |
|---|---|---|
| order | Optional field to specify the order that multiple DecorationDrawers should be drawn in. | |
| TypeId | (Inherited from Attribute.) | |
| WarningMessage |
Gets the warning message.
|
| Name | Description | |
|---|---|---|
| Equals | (Inherited from Attribute.) | |
| Finalize | (Inherited from Object.) | |
| GetHashCode | (Inherited from Attribute.) | |
| GetType | (Inherited from Object.) | |
| IsDefaultAttribute | (Inherited from Attribute.) | |
| Match | (Inherited from Attribute.) | |
| MemberwiseClone | (Inherited from Object.) | |
| ToString | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| ThrowIfNull |
Throws a NullReferenceException if the object is null.
(Defined by ObjectExtensions.) |
| Name | Description | |
|---|---|---|
| _AttributeGetIDsOfNames | (Inherited from Attribute.) | |
| _AttributeGetTypeInfo | (Inherited from Attribute.) | |
| _AttributeGetTypeInfoCount | (Inherited from Attribute.) | |
| _AttributeInvoke | (Inherited from Attribute.) |
public class MyMonoBehaviour : MonoBehaviour { [WarningIfNull("Assign the prefab")] public GameObject playerPrefab; //... }