if(stackTrace.GetFrame(1).GetMethod().Name=="Duplicate")//gets the name of the method, that called OnValidate(). because, only Duplicate() must trigger next code
{
Debug.Log("DUPLICATED");
wasDuplicated=true;
completeID=null;
completeID=GetId();
UpdateEnglishText();
}
base.OnValidate(assignedGraph);
}
Login
Register
By registering on this website you agree to our Privacy Policy.