# Tech Tree Upgrade Count For Unit
Grammar — Count of upgradeType at inUnit, counting countType
Flags —Native
|Function
Returns the count of the specified upgrade for the specified unit.
# Arguments
unit
— Unitstring
<gamelink::Upgrade> — Upgradeint
<preset::TechTreeCountType> — Count Type
Returns — int
native int UnitTechTreeUpgradeCount(
unit inUnit,
string upgradeType,
int countType,
);
# Related
Category: Tech Tree / Counts
- Behavior Count For Player —
int
— TechTreeBehaviorCount - Ability Count For Player —
int
— TechTreeAbilityCount - Unit Count For Player —
int
— TechTreeUnitCount - Unit Alias Count For Player —
int
— TechTreeUnitAliasCount - Upgrade Count For Player —
int
— TechTreeUpgradeCount - Tech Tree Behavior Count For Unit —
int
— UnitTechTreeBehaviorCount - Tech Tree Unit Count For Unit —
int
— UnitTechTreeUnitCount - Tech Tree Upgrade Count For Unit —
int
— UnitTechTreeUpgradeCount
# Examples
— None found —