Skip to Main Content

BTD_Mod_Helper​.Extensions​.UnityDisplayNodeExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

UnityDisplayNodeExt Class

Extensions for UnityDisplayNodes

public static class UnityDisplayNodeExt

Inheritance System.Object  UnityDisplayNodeExt

Methods

UnityDisplayNodeExt.DumpTextures(this UnityDisplayNode, string) Method

Dumps all textures for every renderer in the node

public static void DumpTextures(this UnityDisplayNode node, string prefix);

Parameters

node Il2CppAssets.Scripts.Unity.Display.UnityDisplayNode

prefix System.String

UnityDisplayNodeExt.Get3DModels(this UnityDisplayNode) Method

Get all 3D models attached to this UnityDisplayNode.

public static System.Collections.Generic.List<Transform> Get3DModels(this UnityDisplayNode unityDisplayNode);

Parameters

unityDisplayNode Il2CppAssets.Scripts.Unity.Display.UnityDisplayNode

Returns

System.Collections.Generic.List<UnityEngine.Transform>

UnityDisplayNodeExt.GetBone(this UnityDisplayNode, string) Method

Gets the transform associated with the given bone

public static Transform GetBone(this UnityDisplayNode unityDisplayNode, string boneName);

Parameters

unityDisplayNode Il2CppAssets.Scripts.Unity.Display.UnityDisplayNode

boneName System.String

Returns

UnityEngine.Transform

UnityDisplayNodeExt.GetMeshRenderer(this UnityDisplayNode, int, bool) Method

Gets the first (or an indexed) SkinnedMeshRenderer/MeshRenderer

public static Renderer GetMeshRenderer(this UnityDisplayNode node, int index=0, bool recalculate=true);

Parameters

node Il2CppAssets.Scripts.Unity.Display.UnityDisplayNode

index System.Int32

recalculate System.Boolean

Returns

UnityEngine.Renderer

UnityDisplayNodeExt.GetMeshRenderers(this UnityDisplayNode, bool) Method

Gets all renderers that are of type SkinnedMeshRenderer or MeshRenderer

public static System.Collections.Generic.List<Renderer> GetMeshRenderers(this UnityDisplayNode node, bool recalculate=true);

Parameters

node Il2CppAssets.Scripts.Unity.Display.UnityDisplayNode

recalculate System.Boolean

Returns

System.Collections.Generic.List<UnityEngine.Renderer>

UnityDisplayNodeExt.GetRenderer(this UnityDisplayNode, string, bool) Method

Gets the first generic renderer whose name contains the specified string, recalculating the renderers if need be

public static Renderer GetRenderer(this UnityDisplayNode node, string nameContains, bool recalculate=true);

Parameters

node Il2CppAssets.Scripts.Unity.Display.UnityDisplayNode

The UnityDisplayNode

nameContains System.String

String that renderer name must contain

recalculate System.Boolean

Whether to recalculate renderers

Returns

UnityEngine.Renderer

UnityDisplayNodeExt.GetRenderer(this UnityDisplayNode, bool) Method

Gets the first generic renderer of the specified type, recalculating the renderers if need be

public static T GetRenderer<T>(this UnityDisplayNode node, bool recalculate=true)
    where T : Renderer;

Type parameters

T

The type of Renderer you're looking for

Parameters

node Il2CppAssets.Scripts.Unity.Display.UnityDisplayNode

The UnityDisplayNode

recalculate System.Boolean

Whether to recalculate renderers

Returns

T

UnityDisplayNodeExt.GetRenderer(this UnityDisplayNode, string, bool) Method

Gets the first generic renderer of the specified type whose name contains the specified string, recalculating the renderers if need be

public static T GetRenderer<T>(this UnityDisplayNode node, string nameContains, bool recalculate=true)
    where T : Renderer;

Type parameters

T

The type of Renderer you're looking for

Parameters

node Il2CppAssets.Scripts.Unity.Display.UnityDisplayNode

The UnityDisplayNode

nameContains System.String

String that renderer name must contain

recalculate System.Boolean

Whether to recalculate renderers

Returns

T

UnityDisplayNodeExt.GetRenderers(this UnityDisplayNode, bool) Method

Gets all generic renderers on this UnityDisplayNode, recalculating the renderers if need be

public static System.Collections.Generic.List<Renderer> GetRenderers(this UnityDisplayNode node, bool recalculate=true);

Parameters

node Il2CppAssets.Scripts.Unity.Display.UnityDisplayNode

The UnityDisplayNode

recalculate System.Boolean

Whether to recalculate renderers

Returns

System.Collections.Generic.List<UnityEngine.Renderer>

UnityDisplayNodeExt.GetRenderers(this UnityDisplayNode, bool) Method

Gets all generic renderers of the specified type, recalculating the renderers if need be

public static System.Collections.Generic.List<T> GetRenderers<T>(this UnityDisplayNode node, bool recalculate=true)
    where T : Renderer;

Type parameters

T

The type of Renderer you're looking for

Parameters

node Il2CppAssets.Scripts.Unity.Display.UnityDisplayNode

The UnityDisplayNode

recalculate System.Boolean

Whether to recalculate renderers

Returns

System.Collections.Generic.List<T>

UnityDisplayNodeExt.PrintInfo(this UnityDisplayNode) Method

Prints relevant info about this node to the console

public static void PrintInfo(this UnityDisplayNode node);

Parameters

node Il2CppAssets.Scripts.Unity.Display.UnityDisplayNode

UnityDisplayNodeExt.RemoveBone(this UnityDisplayNode, string, bool) Method

Removes (hides) a given bone

public static void RemoveBone(this UnityDisplayNode unityDisplayNode, string boneName, bool alreadyUnbound=false);

Parameters

unityDisplayNode Il2CppAssets.Scripts.Unity.Display.UnityDisplayNode

boneName System.String

alreadyUnbound System.Boolean

UnityDisplayNodeExt.SaveMeshTexture(this UnityDisplayNode, int, string) Method

Saves the texture used for this node's mesh renderer


By default, this saves to local files, aka "C:\Users...\AppData\LocalLow\Ninja Kiwi\BloonsTD6"

public static void SaveMeshTexture(this UnityDisplayNode node, int index=0, string path=null);

Parameters

node Il2CppAssets.Scripts.Unity.Display.UnityDisplayNode

The UnityDisplayNode

index System.Int32

path System.String

Optional path to save to instead

To learn how to download BTD Mod Helper and install mods, click here