MD Package Technical & APi Documentation
MDUtil_PackageSpecifics
Namespace: MDPackage.Utilities
Package-specific utility library.
// Restrict gameObject from other types. This will prevent the gameObject from adding other types
public static bool RestrictFromOtherTypes(GameObject sender, Type focusedType, Type[] restrictedTypes, bool includeSelfType = true, bool checkForBaseClass = true)

// Prepare specific modifier for further use in the MD Package
public static bool PrepareMeshDeformationModifier(MD_ModifierBase sender, MeshFilter senderFilter, Type[] restrictedTypes, bool checkVertexCountLimit = true, MD_ModifierBase.MeshReferenceType meshReferenceType = MD_ModifierBase.MeshReferenceType.GetFromPreferences)

// Check vertex count limit. If the limitation is over the required level, the window/ debug will popup
public static bool CheckVertexCountLimit(int inputVertexCount, GameObject sender = null)

// Create a brand new mesh reference - instantiates an entry mesh
public static Mesh CreateNewMeshReference(Mesh entryMesh)

// Create a brand new mesh reference, does some additional work (if shared mesh exists) - Safer way
public static void CreateNewMeshReference(MeshFilter entryMeshFilter)

// Returns a pipeline default shader (URP/HDRP/BuiltIn)
public static Shader GetDefaultPipelineShader()

// Returns a current Unity Render Pipeline type (URP/HDRP/BuiltIn)
public static UnityRenderPipelineType GetCurrentRenderPipeline()