void OnEnable() { tooltip = target as Tooltip; tooltip.setVariables(); tooltipWidth = serializedObject.FindProperty("tooltipWidth"); tooltipHeight = serializedObject.FindProperty("tooltipHeight"); showTooltipIcon = serializedObject.FindProperty("showTooltipIcon"); showTooltipName = serializedObject.FindProperty("showTooltipName"); showTooltipDesc = serializedObject.FindProperty("showTooltipDesc"); tooltipIconPosX = serializedObject.FindProperty("tooltipIconPosX"); tooltipIconPosY = serializedObject.FindProperty("tooltipIconPosY"); tooltipNamePosX = serializedObject.FindProperty("tooltipNamePosX"); tooltipNamePosY = serializedObject.FindProperty("tooltipNamePosY"); tooltipDescPosX = serializedObject.FindProperty("tooltipDescPosX"); tooltipDescPosY = serializedObject.FindProperty("tooltipDescPosY"); tooltipDescSizeX = serializedObject.FindProperty("tooltipDescSizeX"); tooltipDescSizeY = serializedObject.FindProperty("tooltipDescSizeY"); tooltipIconSize = serializedObject.FindProperty("tooltipIconSize"); }