Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Get Warning: 'STMAutoDelayData.DrawCustomInspector(SuperTextMesh)' hides inherited member 'STMDelayData.DrawCustomInspector(SuperTextMesh)'. Use the new keyword if hiding was intended.

A topic by Wanwu created 61 days ago Views: 38 Replies: 3
Viewing posts 1 to 2
(1 edit)

Hi, get a warning log:

Assets\Clavian\SuperTextMesh\Scripts\Modules\STMAutoDelayData.cs(36,14): warning CS0108: 'STMAutoDelayData.DrawCustomInspector(SuperTextMesh)' hides inherited member 'STMDelayData.DrawCustomInspector(SuperTextMesh)'. Use the new keyword if hiding was intended.

should I use "public new void DrawCustomInspector" instead "public void DrawCustomInspector"

Developer

gah I didn't consider this when I added the new class. It's just a warning not an error, correct? It should be fine to ignore for now, and I'll adjust it so it doesn't report an error in the next update. Sorry!

Yes, the program works normally, except that every time a warning pops up, I added "new" in front of the function and problem solved

Developer

Ok, perfect. I should have a new update out soon that this error shouldn't appear in.