Click or drag to resize
1.8.0

Version 1.8.0 was released on 2016-01-29.

Upgrading

The minimum Unity version is now 4.7.0.

New Features
  • Added property bool HyperText.raycastTarget to all versions of Unity older than 5.2 (reflects functionality of built-in property in Unity 5.2 and newer).
  • Added method int HyperText.GetLinks(ref List<HyperText.LinkInfo>).
  • Added method protected bool RaycastRect(Vector2, Camera) to allow subclasses to more easily implement raycast functionality of UnityEngine.UI.Graphic.
  • Custom classes inheriting from HyperText now automatically display child class properties in the inspector as needed. See the "Other Properties" group right before the "Events" group.
  • Added inspector and console warnings if a HyperText is the child of another clickable control (e.g., Buttons) and contains links that might block input to them.
  • Added menu option Assets -> Candlelight -> HyperText -> Validate Raycast Targets to scan the project for HyperText instances that might block input to buttons.
Changes
  • Unity 4.7.0 is new minimum version.
  • The following events have been made obsolete to reduce confusion:
    • HyperText.OnPress
    • HyperText.OnRelease
  • The following events have been made obsolete and renamed to better conform to MSDN naming guidelines:
    • HyperText.OnClick -> HyperText.ClickedLink
    • HyperText.OnEnter -> HyperText.EnteredLink
    • HyperText.OnExit -> HyperText.ExitedLink
    • HyperTextStyles.OnStylesChanged -> HyperTextStyles.Changed (type is now HyperTextStyles.ChangedEventHandler)
    • ITextSource.OnBecameDirty -> ITextSource.BecameDirty (type is now ITextSourceEventHandler)
    • KeywordCollection.OnRebuildKeywords -> KeywordCollection.Changed (type is now KeywordCollection.ChangedEventHandler)
  • The following methods have been made virtual in order to facilitate subclassing:
    • HyperText.OnPointerClick(PointerEventData eventData)
    • HyperText.OnPointerDown(PointerEventData eventData)
    • HyperText.OnPointerExit(PointerEventData eventData)
    • HyperText.OnPointerUp(PointerEventData eventData)
  • HyperText no longer implements UnityEngine.EventSystems.IPointerEnterHandler.
  • Minor reduction in allocations.
  • Removed some obsolete members.
  • Library updates.
Bug Fixes
  • Custom classes that inherit from HyperText will now use its editor.
  • Fixed raycastTarget property missing in inspector in Unity 5.2.0 and higher.
  • Fixed inspector button to sort keywords alphabetically not working with keyboard control.
  • Fixed alphabetizing keywords via inspector button not undoable.
  • Fixed bug in FontUpdateTracker that could cause InvalidOperationException.
  • Fixed popup graphic in example scene appearing wrong on some Android devices.
  • Fixed bug causing state colors with multiplicative blending to get clamped to (1, 1, 1, 1).
  • Fix bug in HyperTextStyles inspector preventing interaction with overridden link style controls.
  • Fix bug in 5.2.0 and newer that could cause an errant character to appear at wrong vertical offset at the end of a line if text was truncated vertically.
See Also