Skip to content

Changed Handles.DotCap to Handles.DotHandleCap#15

Open
korman wants to merge 1 commit intojaroslavstehlik:masterfrom
korman:master
Open

Changed Handles.DotCap to Handles.DotHandleCap#15
korman wants to merge 1 commit intojaroslavstehlik:masterfrom
korman:master

Conversation

@korman
Copy link

@korman korman commented Nov 22, 2024

Fix: Update deprecated Handles.DotCap to Handles.DotHandleCap

Updated the deprecated Handles.DotCap method to Handles.DotHandleCap to resolve compilation errors in newer Unity versions. This change maintains the same functionality while using the current recommended API.

Changes made:

  • Replaced Handles.DotCap with Handles.DotHandleCap
  • Added required EventType.Repaint parameter

This update resolves the "Handles.DotCap not found" error and ensures compatibility with current Unity versions.

@jaroslavstehlik
Copy link
Owner

Hello,

Thank you for the fix!
Could you please make the fix in a way that it does not break older unity versions?
Probably track down when that change has been introduced by Unity, usually the unity docs is a good way to find it
and then put it behind a conditional compilation.
For example:
#if UNITY_2019_4_OR_NEWER
// all newer unity versions
#else
// all previous versions.
#endif
Thanks!

@korman
Copy link
Author

korman commented Dec 18, 2024

ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants