mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
39 lines
975 B
C#
39 lines
975 B
C#
using UnityEngine;
|
|
using System;
|
|
|
|
namespace UnityEditor.U2D.Animation
|
|
{
|
|
[Serializable]
|
|
internal class Vertex2D
|
|
{
|
|
public Vector2 position
|
|
{
|
|
get { return m_Position; }
|
|
set { m_Position = value; }
|
|
}
|
|
|
|
public EditableBoneWeight editableBoneWeight
|
|
{
|
|
get { return m_EditableBoneWeight; }
|
|
set { m_EditableBoneWeight = value; }
|
|
}
|
|
|
|
public Vertex2D(Vector2 position)
|
|
{
|
|
m_Position = position;
|
|
m_EditableBoneWeight = EditableBoneWeightUtility.CreateFromBoneWeight(new BoneWeight());
|
|
}
|
|
|
|
public Vertex2D(Vector2 position, BoneWeight weights)
|
|
{
|
|
m_Position = position;
|
|
m_EditableBoneWeight = EditableBoneWeightUtility.CreateFromBoneWeight(weights);
|
|
}
|
|
|
|
[SerializeField]
|
|
Vector2 m_Position;
|
|
|
|
[SerializeField]
|
|
EditableBoneWeight m_EditableBoneWeight;
|
|
}
|
|
}
|