Doubt about CrossPlatformInputManager

Hi there. I’ve been studying in deep the code in CrossPlatformManager but I have a doubt about the VirtualButton’s constructor public VirtualButton(string name) : this(name, true) { }
what is : this(name, true) suppose to do? I’ve never seen something like that before. I googled about constructor and “:” on C# but I get no answer.

After a deep investigation and try/error I’ve found the solution. That code executed first the called constructor and then an overloaded constructor of the class.

1 Like

Privacy & Terms