Obi Official Forum
Bug / Crash warning CS00108 - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Cloth (https://obi.virtualmethodstudio.com/forum/forum-2.html)
+--- Thread: Bug / Crash warning CS00108 (/thread-876.html)



warning CS00108 - Richard - 07-02-2019

"Assets\Obi\Scripts\Actors\ObiCloth.cs(78,14): warning CS0108: 'ObiCloth.Awake()' hides inherited member 'ObiClothBase.Awake()'. Use the new keyword if hiding was intended." is printed. Do I have to do something?


RE: warning CS00108 - josemendez - 07-02-2019

(07-02-2019, 01:02 PM)Richard Wrote: "Assets\Obi\Scripts\Actors\ObiCloth.cs(78,14): warning CS0108: 'ObiCloth.Awake()' hides inherited member 'ObiClothBase.Awake()'. Use the new keyword if hiding was intended." is printed. Do I have to do something?

Oops! thanks for finding this Sonrisa

It will not affect behavior in any way so you can ignore it. However, fixing it is easy: go to ObiClothBase.cs and declare the Awake() method (line 130) as virtual:
Code:
public virtual void Awake()

Then, in ObiCloth.cs (line 78) declare it as override:
Code:
public override void Awake()