Struct EditorPrefBoolFlags<T>
Bool flag saved in EditorPref
Inherited Members
Namespace: UnityEditor.Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
public struct EditorPrefBoolFlags<T> : IEquatable<T>, IEquatable<EditorPrefBoolFlags<T>> where T : struct, IConvertible
Type Parameters
| Name | Description |
|---|---|
| T | Underlying enum type |
Constructors
| Name | Description |
|---|---|
| EditorPrefBoolFlags(string) | Constructor |
Properties
| Name | Description |
|---|---|
| rawValue | The raw value |
| value | The value as the underlying enum type used |
Methods
| Name | Description |
|---|---|
| Equals(EditorPrefBoolFlags<T>) | Test if this EditorPrefBoolFlags is the same than the given one |
| Equals(T) | Test if saved value is equal to the one given |
| HasFlag(T) | Test if the given flags are set |
| SetFlag(T, bool) | Set or unset the flags |
Operators
| Name | Description |
|---|---|
| operator &(EditorPrefBoolFlags<T>, T) | And operator between a EditorPrefBoolFlags and a value |
| operator |(EditorPrefBoolFlags<T>, T) | Or operator between a EditorPrefBoolFlags and a value |
| operator ^(EditorPrefBoolFlags<T>, T) | Xor operator between a EditorPrefBoolFlags and a value |
| explicit operator T(EditorPrefBoolFlags<T>) | Explicit conversion operator to the underlying type |