Summary
Attribute for static methods which try to create a transition from an object.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Base Types
-
- Attribute
graph BT
Type-->Base0["Attribute"]
Type["TryCreateTransitionAttribute"]
class Type type-node
Syntax
[AttributeUsage(AttributeTargets.Method)]
public sealed class TryCreateTransitionAttribute : Attribute
Remarks
The method signature must be:
static ITransition TryCreateTransition(Object target)
Attributes
| Type | Description |
|---|---|
| Attribute |
Constructors
| Name | Summary |
|---|---|
| Try |
Creates a new Animancer.TryCreateTransitionAttribute. |
Properties
| Name | Value | Summary |
|---|---|---|
| ObjectType | Type |
The base type of object which the attributed method can handle.
|
Methods
| Name | Value | Summary |
|---|---|---|
| CanCreate |
bool |
[Editor-Only] Validates that the `mainAsset` is actually an asset.
static
|
| CanCreateAndSave |
bool |
[Editor-Only] Validates that the `mainAsset` is actually an asset.
static
|
| Try |
TransitionAssetBase |
[Editor-Only] Tries to create an asset containing an appropriate transition for the `target`.
static
|