Child unit count - Children per command handler

Hello everyone,

How exactly do you get the child count (children per command handler)? What exactly is counted, do SubTree instances (and their units) belong to them, for example? If I look at the OnInitHirarchy method I would assume that every AddUnit () is viewed as a child. Do an AddCommand () or an AddAddOn () also count?

grafik.png
26.88KB
Best reply by nexidator

Every child that is added with the AddUnit method is counted (i.e. including subtree instances). All Addons added by AddAddon are counted separately in _stdExecHandlerData.AddonCount. All commands added by AddCommand are counted in _stdCmdHandlerData.CommandCount.

View original
2 replies
Resolved