public static bool OnOpen(int instanceID, int line) { VariableInventory variableInventory = EditorUtility.InstanceIDToObject(instanceID) as VariableInventory; if (variableInventory == null) { return(false); } return(OpenWindow() != null); }
//Called via activator public CreateVariableEditor(VariableInventory variableInventory) : this() { _variableInventory = variableInventory; //Debug.Log("Correct constructor"); }