Why is my Toggle function execute without using the Toggle?

I have a function:

public void Tgl_MustXXX (bool _xxx) {

This is connected to a UI Toggle. If i disable the toggle object it does not execute but if the toggle is enabled, not touched, in the UI when starting the app is actually been executed when starting up.

I have no code that reference this function at all, only the UI Toggle object.

Anyone with some idea’s what is happening?

need to check manually if its actually on or off,

1 Like

Thanks, i do that already.

So, are you asking why the changed callback is called?

I am asking why the function is called at start without me referencing it.

If I understand your question correctly, I think it’s being called because the toggle changes and every time it changes, that method is called.