2026 Method
Changes 1
M

UnitUtils.IsValidUnit

Description:
Checks whether a unit is valid for a given measurable spec.
public static bool IsValidUnit(
	ForgeTypeId specTypeId,
	ForgeTypeId unitTypeId
)
  • specTypeId
    Identifier of the measurable spec.
  • unitTypeId
    Identifier of the unit to check.
Return Value Boolean True if the unit is valid, false otherwise.