//private Vector3[] handlePoints = new Vector3[4]; // { new Vector3(-10, -10, 0), new Vector3(-10, 10, 0), new Vector3(10, 10, 0), new Vector3(10, -10, 0) };
privatefloatprev_lineLenght;
publicvoidOnEnable()
{
//Debug.Log("OnEnable() for Inspector ID " + this.GetInstanceID() + " has been called.");
filePath=filePath.Substring(0,filePath.Length-6);// Trim file extension from filePath.
stringdataPath=Application.dataPath;
if(filePath.IndexOf(dataPath)==-1)
{
Debug.LogError("You're saving the font asset in a directory outside of this project folder. This is not supported. Please select a directory under \""+dataPath+"\"");
filePath=filePath.Substring(0,filePath.Length-6);// Trim file extension from filePath.
stringdataPath=Application.dataPath;
if(filePath.IndexOf(dataPath)==-1)
{
Debug.LogError("You're saving the font asset in a directory outside of this project folder. This is not supported. Please select a directory under \""+dataPath+"\"");
//Debug.Log("Drag-n-Drop Material is " + newMaterial + ". Target Material is " + currentMaterial); // + ". Canvas Material is " + m_uiRenderer.GetMaterial() );
// Check to make sure we have a valid material and that the font atlases match.