07-02-2019, 01:02 PM
"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?
Bug / Crash warning CS00108
|
07-02-2019, 01:02 PM
"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?
07-02-2019, 01:10 PM
(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 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() |
« Next Oldest | Next Newest »
|