error CS0506. How to fix?
Im working on a 3D FPS shooter in Unity and the error says that
protected override void Interact()
isn't marked as override
but it is. Here is my script:
7 Replies
please help
Show the full error message.
Assets\Scripts\Interactables\Keypad.cs(18,29): error CS0506: 'Keypad.Interact()': cannot override inherited member 'Interactable.Interact()' because it is not marked virtual, abstract, or override
Well that method cannot be overridden.
bruh but it says not marked as virtual, abstract or override
Yes, that's why you cannot override.
That's mentioning the original method in
Interactable
.ohh
ok
thanks