26 lines
735 B
C#
26 lines
735 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using Animancer;
|
|
using UnityEngine;
|
|
|
|
namespace Net.Project.B
|
|
{
|
|
public class AnimancerTest : MonoBehaviour
|
|
{
|
|
[SerializeField] private AnimancerComponent animancerComponent;
|
|
[SerializeField] private AnimationClip animationClip;
|
|
[SerializeField] private bool isAdditive;
|
|
[SerializeField] private int layer;
|
|
[SerializeField] private AvatarMask avatarMask;
|
|
|
|
private void Start()
|
|
{
|
|
animancerComponent.Layers[layer].IsAdditive = isAdditive;
|
|
animancerComponent.Layers[layer].SetMask(avatarMask);
|
|
animancerComponent.Layers[layer].Play(animationClip);
|
|
}
|
|
}
|
|
|
|
}
|