Click or drag to resize

PartModelUpdateHighlighters Method (Part, Transform)

Refreshes the highlighters on the part.

Namespace:  KSPDev.PartUtils
Assembly:  KSPDev_Utils.2.5 (in KSPDev_Utils.2.5.dll) Version: 2.5 for KSP v1
Syntax
C#
public static void UpdateHighlighters(
	Part part,
	Transform exclude = null
)
Request Example View Source

Parameters

part
Type: (Default Namespace)Part
The part to refresh the highlighters for. It can be null.
exclude (Optional)
Type: UnityEngineTransform
If set, then this object and all its children will be excluded from highlighting. Note, that the stock game logic doesn't assume a case when some renderers from the model are not subject to highlighting. The client must track events which result to the stock update logic to run and repeat the custom update to maintain the excluded state.
Remarks
It goes through the highlighters cache and drops all the renderers that are no more in the part's model hierarchy. Then, it gets all the renderers in the hierarchy and ensures all of them are in the cache. It's not a cheap operation performance wise.
See Also