Search Issue Tracker
Fixed in 2.1.1, 3.0.1
Votes
4
Found in [Package]
2.1.0
Issue ID
1262760
Regression
Yes
TextMeshPro throws "CS0067: The event 'TMP_Text.OnPreRenderText' is never used" warning when compiled
To reproduce:
1. Open attached project ("case_1182462.zip")
2. Install the latest available TextMeshPro package version
3. Observe the Console window
Expected result: No warnings are thrown
Actual result: "CS0067: The event 'TMP_Text.OnPreRenderText' is never used" warning thrown
Reproducible in: 2019.4.4f1 (2.1.0)
Not reproducible in: 2018.4.25f1 (0.1.2, 1.5.0), 2019.4.4f1 (2.0.0, preview.14-2.1.0), 2020.1.0b16, 2020.2.0a18 (preview.1-3.0.0, 3.0.0)
Note: Full warning message:
"Library\PackageCache\com.unity.textmeshpro@2.1.0\Scripts\Runtime\TMP_Text.cs(1271,51): warning CS0067: The event 'TMP_Text.OnPreRenderText' is never used"
-
Victorious-Tech
Aug 15, 2020 15:27
if they already solved it because it keeps happening in other later versions?
Library\PackageCache\com.unity.textmeshpro@3.0.0\Scripts\Runtime\TMP_Text.cs(1271,51): warning CS0067: The event 'TMP_Text.OnPreRenderText' is never used
line code
------------------------------------------------------------------------------------------------------
1271 public virtual event Action<TMP_TextInfo> OnPreRenderText;Library\PackageCache\com.unity.textmeshpro@3.0.0\Scripts\Runtime\TMP_DefaultControls.cs(191,22): error CS1061: 'RectMask2D' does not contain a definition for 'padding' and no accessible extension method 'padding' accepting a first argument of type 'RectMask2D' could be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.collab-proxy@1.3.8\Editor\Models\Providers\Collab.cs(593,22): error CS1061: 'Collab' does not contain a definition for 'RevertFiles' and no accessible extension method 'RevertFiles' accepting a first argument of type 'Collab' could be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.collab-proxy@1.3.8\Editor\Models\Providers\Collab.cs(517,36): error CS1061: 'RevisionsService' does not contain a definition for 'FetchSingleRevisionCallback' and no accessible extension method 'FetchSingleRevisionCallback' accepting a first argument of type 'RevisionsService' could be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.collab-proxy@1.3.8\Editor\Models\Providers\Collab.cs(511,36): error CS1061: 'RevisionsService' does not contain a definition for 'FetchSingleRevisionCallback' and no accessible extension method 'FetchSingleRevisionCallback' accepting a first argument of type 'RevisionsService' could be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.collab-proxy@1.3.8\Editor\Models\Providers\Collab.cs(506,36): error CS1061: 'RevisionsService' does not contain a definition for 'GetRevision' and no accessible extension method 'GetRevision' accepting a first argument of type 'RevisionsService' could be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.collab-proxy@1.3.8\Editor\Models\Providers\Collab.cs(503,32): error CS1061: 'RevisionsService' does not contain a definition for 'FetchSingleRevisionCallback' and no accessible extension method 'FetchSingleRevisionCallback' accepting a first argument of type 'RevisionsService' could be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.collab-proxy@1.3.8\Editor\Models\Providers\Collab.cs(477,22): error CS1061: 'Collab' does not contain a definition for 'PublishAssetsAsync' and no accessible extension method 'PublishAssetsAsync' accepting a first argument of type 'Collab' could be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.collab-proxy@1.3.8\Editor\Models\Providers\Collab.cs(460,36): error CS1061: 'Collab' does not contain a definition for 'GetChangesToPublish_V2' and no accessible extension method 'GetChangesToPublish_V2' accepting a first argument of type 'Collab' could be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.collab-proxy@1.3.8\Editor\Models\Providers\Collab.cs(114,22): error CS1061: 'Collab' does not contain a definition for 'ErrorOccurred_V2' and no accessible extension method 'ErrorOccurred_V2' accepting a first argument of type 'Collab' could be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.collab-proxy@1.3.8\Editor\Models\Providers\Collab.cs(112,22): error CS1061: 'Collab' does not contain a definition for 'CollabInfoChanged' and no accessible extension method 'CollabInfoChanged' accepting a first argument of type 'Collab' could be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.collab-proxy@1.3.8\Editor\Models\Providers\Collab.cs(110,22): error CS1061: 'Collab' does not contain a definition for 'RevisionUpdated_V2' and no accessible extension method 'RevisionUpdated_V2' accepting a first argument of type 'Collab' could be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.collab-proxy@1.3.8\Editor\Models\Providers\Collab.cs(109,22): error CS1061: 'Collab' does not contain a definition for 'SelectedChangeItemsChanged' and no accessible extension method 'SelectedChangeItemsChanged' accepting a first argument of type 'Collab' could be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.collab-proxy@1.3.8\Editor\Models\Providers\Collab.cs(108,22): error CS1061: 'Collab' does not contain a definition for 'ChangeItemsChanged' and no accessible extension method 'ChangeItemsChanged' accepting a first argument of type 'Collab' could be found (are you missing a using directive or an assembly reference?)
Library\PackageCache\com.unity.collab-proxy@1.3.8\Editor\UserInterface\Bootstrap.cs(23,20): error CS0117: 'Collab' does not contain a definition for 'ShowChangesWindow'
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- TreeView Child display toggle styling becomes reversed when clicking and dragging it
- Null is returned when using FocusOutEvent.relatedTarget
- Unity_BaseInstanceID is always zero when rendering multiple meshes and instancing with the same buffer
- UI Document button's text does not resize relatively when size in percentage (%) is used
- Event.current.mousePosition has an offset of 1px along the y-axis in WebGL build when the mouse button is released
Resolution Note (fix version 2.1.1, 3.0.1):
This issue has already been resolved. The fix will be included in the next release of the TMP package which will be version 1.5.1 for Unity 2018.4, version 2.1.1 for Unity 2019.x and version 3.0.1 for Unity 2020.x.