Click or drag to resize

PartModelUpdateHighlighters Method (Transform)

Refreshes the highlighters on the part that owns the provided model.

Namespace:  KSPDev.PartUtils
Assembly:  KSPDev_Utils.1.1 (in KSPDev_Utils.1.1.dll) Version: 1.1 for KSP v1.6+
Syntax
C#
public static void UpdateHighlighters(
	Transform modelObj
)
Request Example View Source

Parameters

modelObj
Type: UnityEngineTransform
The game object which needs an update. It can be null.
Remarks
When a part is highlighted (e.g. due to the mouse hover event), it highlights its models via a pre-cached set of the highlighter components. This cache is constructed on the part creation. If a model is added or removed from the part in runtime, the cache needs to be updated. This method does it by finding the part from the game objects hirerachy. If there is a part found, then its highlighters are updated.
See Also