Initial commit

This commit is contained in:
AbstractConcept 2022-09-13 00:36:34 -05:00
commit 3c7cc0c973
8391 changed files with 704313 additions and 0 deletions

View file

@ -0,0 +1,60 @@
using UnityEngine;
namespace UnityEditor.U2D.Animation
{
internal class WeightPainterToolWrapper : BaseTool
{
[SerializeField]
private WeightPainterMode m_PaintMode;
[SerializeField]
private WeightPainterTool m_WeightPainterTool;
private string m_Title;
public override IMeshPreviewBehaviour previewBehaviour
{
get { return m_WeightPainterTool.previewBehaviour; }
}
public WeightPainterTool weightPainterTool
{
get { return m_WeightPainterTool; }
set { m_WeightPainterTool = value; }
}
public WeightPainterMode paintMode
{
get { return m_PaintMode; }
set { m_PaintMode = value; }
}
public string title
{
set { m_Title = value; }
}
public override int defaultControlID
{
get { return weightPainterTool.defaultControlID; }
}
protected override void OnActivate()
{
weightPainterTool.Activate();
weightPainterTool.panelTitle = m_Title;
}
protected override void OnDeactivate()
{
weightPainterTool.Deactivate();
}
protected override void OnGUI()
{
weightPainterTool.paintMode = paintMode;
weightPainterTool.DoGUI();
}
}
}