Click or drag to resize

StockResourceNamesGetId Method

Returns an ID for the specified resource name.

Namespace:  KSPDev.ResourceUtils
Assembly:  KSPDev_Utils.1.2 (in KSPDev_Utils.1.2.dll) Version: 1.2 for KSP v1.6+
Syntax
C#
public static int GetId(
	string resourceName
)
Request Example View Source

Parameters

resourceName
Type: SystemString
The name of the stock resource.

Return Value

Type: Int32
An ID of the resource.
Remarks
This ID can be used in the methods that can only work with IDs.
See Also