Class ActionResult
Contains information about the results of a ProBuilder action (success, failure, and other notifications)
Inherited Members
Namespace: UnityEngine.ProBuilder
Assembly: Unity.ProBuilder.dll
Syntax
public sealed class ActionResult
Constructors
Name | Description |
---|---|
ActionResult(Status, string) | Creates a new ActionResult with a specific status value. |
Properties
Name | Description |
---|---|
NoSelection | Creates a generic "No Selection" action result with "Nothing Selected" notification. |
Success | Creates a generic "Success" action result with no notification text. |
UserCanceled | Creates a generic "Canceled" action result with "User Canceled" notification. |
notification | Gets the short description of the results (a few words long). |
status | Gets the status of the action following the operation. |
Methods
Name | Description |
---|---|
FromBool(bool) | Returns the value of the specified |
ToBool() | Checks whether the current ActionResult is set to Success or not. |
Operators
Name | Description |
---|---|
implicit operator bool(ActionResult) | Converts the specified result to a boolean value, where true indicates success. |