Add named overload for NewBlendTree() and NewBlendTreeAsRaw():

- Add overload for NewBlendTree() which accepts a name.
- Add overload for NewBlendTreeAsRaw() which accepts a name.
- Addresses #56.
This commit is contained in:
Haï~
2025-07-11 01:51:45 +02:00
parent 84f7f1d089
commit 399b721f4a
@@ -523,6 +523,18 @@ namespace AnimatorAsCode.V1
return new AacFlClip(_configuration, clip);
}
/// Create a new BlendTree asset with a name. However, the name is only used as a suffix for the asset. The asset is generated into the container.
public AacFlNonInitializedBlendTree NewBlendTree(string name)
{
return new AacFlNonInitializedBlendTree(AacInternals.NewBlendTreeAsRaw(_configuration, name));
}
/// Create a new BlendTree asset with a name and returns a native BlendTree object. However, the name is only used as a suffix for the asset. The asset is generated into the container. You may use NewBlendTree() instead to obtain a fluent interface.
public BlendTree NewBlendTreeAsRaw(string name)
{
return AacInternals.NewBlendTreeAsRaw(_configuration, name);
}
/// Create a new clip which animates a dummy transform for a specific duration specified in an unit (Frames or Seconds).
public AacFlClip DummyClipLasting(float numberOf, AacFlUnit unit)
{