- Home /
Question by
rafsanj24 · Aug 04, 2015 at 11:43 PM ·
error-building-player
compile error
Very strangely,i've been getting this error code here:
Assets/SampleAssets/Effects/ImageEffects (Pro Only)/Scripts/EdgeDetectEffectNormals.cs(33,33): error CS0507: UnitySampleAssets.EdgeDetectEffectNormals.CheckResources()': cannot change access modifiers when overriding
public' inherited member `PostEffectsBase.CheckResources()' Help?
Comment
Answer by nullgobz · Aug 04, 2015 at 11:56 PM
This compiler error will occur when you have a derived class overriding a member with a diffrent access modifier.
Look at the access modifiers on CheckResources() in PostEffectsBase. And make sure CheckResources() in EdgeDetectEffectNormals has the same modifier,
In ur case CheckResources() in EdgeDetectEffectNormals need a public modifier.
Your answer
