AirtestProject / Poco-SDK

https://github.com/AirtestProject/Poco
Apache License 2.0
279 stars 159 forks source link

[Unity3D-sdk] Remove dependency on TextMeshPro from ugui/UnityNode.cs #111

Open KorneiDontsov opened 1 year ago

KorneiDontsov commented 1 year ago

Documentation in README says that folder 'ugui' should be chosen when target project uses UnityEngine.UI without TextMeshPro. But at the moment ugui/UnityNode.cs is not working without TextMeshPro. These changes fix it.

The commit actually roll back the changes made in commit 90376b987c90e0671c4c42bf9796d116484befbd last year. Probably, they was forgotten to roll back when TextMeshPro support was split to separate folder 'uguiWithTMPro'.

KorneiDontsov commented 1 year ago

Compilation error that occurs and needs fixing:

Assets/PocoSDK/ugui/UnityNode.cs(5,7): error CS0246: The type or namespace name `TMPro' could not be found. Are you missing a using directive or an assembly reference?