TryCreateTransitionAttribute Class

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
AttributeUsageAttribute

Constructors

Name Summary
TryCreateTransitionAttribute(Type) 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(Type) bool
[Editor-Only] Validates that the `mainAsset` is actually an asset.
static
CanCreateAndSave(Object) bool
[Editor-Only] Validates that the `mainAsset` is actually an asset.
static
TryCreateTransitionAsset(Object, bool) TransitionAssetBase
[Editor-Only] Tries to create an asset containing an appropriate transition for the `target`.
static