Execute base code in a virtual method

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By luislodosm

How to execute the base code on a virtual method?

Class A:

_virtual_method():
# Base code 

Class B extends Class A:

_virtual_method():
# Execute "Base code"
# New code

In Unity was base.method()

:bust_in_silhouette: Reply From: deaton64

Hi,

I’ve not done it, but I think it’s like this:

._virtual_method():

So add a period or full stop (where I come from) to the method.

You are right. Thank you. It’s this anywere in the official docs?

luislodosm | 2020-05-20 21:14

I don’t know. I think I picked it up from here YouTube Video or the next one in the series.

deaton64 | 2020-05-20 21:33

Thank you again!

luislodosm | 2020-05-20 21:48