Table of Contents

Class VarietyUtils

Namespace
KSP
Assembly
Assembly-CSharp.dll
public static class VarietyUtils
Inheritance
VarietyUtils
Inherited Members

Fields

CHARACTER_SHADER_COLOR_PARAM_NAME

public const string CHARACTER_SHADER_COLOR_PARAM_NAME = "_RandomColor"

Field Value

string

CHARACTER_SHADER_FRESNEL_PARAM_NAME

public const string CHARACTER_SHADER_FRESNEL_PARAM_NAME = "_FresnelScale"

Field Value

string

CHARACTER_SHADER_NAME

public const string CHARACTER_SHADER_NAME = "KSP2/Standard Character"

Field Value

string

FRESNEL_AT_BRIGHTEST

public const float FRESNEL_AT_BRIGHTEST = 0.25

Field Value

float

FRESNEL_AT_DARKEST

public const float FRESNEL_AT_DARKEST = 5

Field Value

float

HAIR_MATERIAL_TAG

public const string HAIR_MATERIAL_TAG = "hair"

Field Value

string

HAIR_SHADER_NAME

public const string HAIR_SHADER_NAME = "KSP2/KerbalHair2"

Field Value

string

KSP2STANDARD_SHADER_NAME

public const string KSP2STANDARD_SHADER_NAME = "KSP2/Standard"

Field Value

string

Methods

ApplyBraveryToAnimTrees(GameObject, float)

public static bool ApplyBraveryToAnimTrees(GameObject GO, float value)

Parameters

GO GameObject
value float

Returns

bool

ApplyConstitutionToAnimTrees(GameObject, float)

public static bool ApplyConstitutionToAnimTrees(GameObject GO, float value)

Parameters

GO GameObject
value float

Returns

bool

ApplyHairColor(GameObject, Color)

public static bool ApplyHairColor(GameObject GO, Color color)

Parameters

GO GameObject
color Color

Returns

bool

ApplyKerbalSkinColor(GameObject, Color)

public static bool ApplyKerbalSkinColor(GameObject GO, Color color)

Parameters

GO GameObject
color Color

Returns

bool

ApplyOptimismToAnimTrees(GameObject, float)

public static bool ApplyOptimismToAnimTrees(GameObject GO, float value)

Parameters

GO GameObject
value float

Returns

bool

ApplyStupidityToAnimTrees(GameObject, float)

public static bool ApplyStupidityToAnimTrees(GameObject GO, float value)

Parameters

GO GameObject
value float

Returns

bool

ApplyTeamColor1(GameObject, Color)

public static bool ApplyTeamColor1(GameObject GO, Color color)

Parameters

GO GameObject
color Color

Returns

bool

ApplyTeamColor2(GameObject, Color)

public static bool ApplyTeamColor2(GameObject GO, Color color)

Parameters

GO GameObject
color Color

Returns

bool

ApplyVoiceSelection(GameObject, int)

public static bool ApplyVoiceSelection(GameObject GO, int value)

Parameters

GO GameObject
value int

Returns

bool

ApplyVoiceType(GameObject, float)

public static bool ApplyVoiceType(GameObject GO, float value)

Parameters

GO GameObject
value float

Returns

bool

GenerateBiography(ref KerbalAttributes, string)

public static bool GenerateBiography(ref KerbalAttributes kerbalAttributes, string biography)

Parameters

kerbalAttributes KerbalAttributes
biography string

Returns

bool

GenerateSurname(ref KerbalAttributes, string)

public static bool GenerateSurname(ref KerbalAttributes kerbalAttributes, string surname)

Parameters

kerbalAttributes KerbalAttributes
surname string

Returns

bool

GetTypeFromString(string)

public static Type GetTypeFromString(string typeNameToFind)

Parameters

typeNameToFind string

Returns

Type

PlaceAndAnimateRig(GameObject, GameObject)

public static bool PlaceAndAnimateRig(GameObject GO, GameObject rigGO)

Parameters

GO GameObject
rigGO GameObject

Returns

bool

ReSkinTheseMeshesToTheRootRig(GameObject, GameObject)

public static bool ReSkinTheseMeshesToTheRootRig(GameObject GO, GameObject GOWithMeshesToReSkin)

Parameters

GO GameObject
GOWithMeshesToReSkin GameObject

Returns

bool

SetEyeHeightInAnimTree(GameObject, float)

public static bool SetEyeHeightInAnimTree(GameObject GO, float value)

Parameters

GO GameObject
value float

Returns

bool

SetEyeSymmetryInAnimTree(GameObject, float)

public static bool SetEyeSymmetryInAnimTree(GameObject GO, float value)

Parameters

GO GameObject
value float

Returns

bool

TryConnectHairToHelmet(GameObject, GameObject)

public static bool TryConnectHairToHelmet(GameObject GO, GameObject hairPrefab)

Parameters

GO GameObject
hairPrefab GameObject

Returns

bool

TryGetKerbalRosterManager(out KerbalRosterManager)

public static bool TryGetKerbalRosterManager(out KerbalRosterManager targetKerbalRosterManager)

Parameters

targetKerbalRosterManager KerbalRosterManager

Returns

bool