Common Issues
Pointer Behaviour
Movement To Target
β Problem: A target is passed to the tooltip so it can point at it, but the pointer does not move toward the target and instead stays in place - for example, at the zero coordinate. Π‘heck the method Input Controller β GetObjectType. It is responsible for determining whether the target is a 2D, 3D, or UI object in order to position the pointer correctly. If you assign as a target an object that has nothing except, for example, just a Transform component (a point), the base GetObjectType method will return the type None, and the pointer will not be able to move toward the target.
β Solution: Set the default type to 3D instead of None at the very end of the method:
cachedType = ObjectTypeEnum._3D;
return cachedType;Appearance/Disappearance
β Problem: A pointer prefab appears in the tooltip, but does not disappear correctly (or other issues occur with appearing/disappearing of a visual). This can happen when using the default settings, for example WorldPointerNone, which are assigned by default for a manually created visual. The issue is caused by the appearance and disappearance animations used in None settings.
β Solution: Create a duplicate of the Settings and assign it to prefab (a World/UI Pointer Settings as Scriptable Object). Then set Appearance Animation = Fade, Disappearance Animation = Fade, and set the appearance duration for both to 0. Test it - the display logic should work correctly. Switch to other animations and durations by replacing the default None settings.
Last updated