Table of Contents

Class MetaMesh

Namespace
TaleWorlds.Engine
Assembly
TaleWorlds.Engine.dll
[EngineClass("rglMeta_mesh")]
public sealed class MetaMesh : GameEntityComponent
Inheritance
MetaMesh
Inherited Members

Properties

Frame

public MatrixFrame Frame { get; set; }

Property Value

MatrixFrame

IsValid

public bool IsValid { get; }

Property Value

bool

MeshCount

public int MeshCount { get; }

Property Value

int

VectorUserData

public Vec3 VectorUserData { get; set; }

Property Value

Vec3

Methods

AddEditDataUser()

public void AddEditDataUser()

AddMaterialShaderFlag(string)

public void AddMaterialShaderFlag(string materialShaderFlag)

Parameters

materialShaderFlag string

AddMesh(Mesh)

public void AddMesh(Mesh mesh)

Parameters

mesh Mesh

AddMesh(Mesh, uint)

public void AddMesh(Mesh mesh, uint lodLevel)

Parameters

mesh Mesh
lodLevel uint

AddMetaMesh(MetaMesh)

public void AddMetaMesh(MetaMesh metaMesh)

Parameters

metaMesh MetaMesh

AssignClothBodyFrom(MetaMesh)

public void AssignClothBodyFrom(MetaMesh metaMesh)

Parameters

metaMesh MetaMesh

BatchMultiMeshes(MetaMesh)

public void BatchMultiMeshes(MetaMesh metaMesh)

Parameters

metaMesh MetaMesh

BatchMultiMeshesMultiple(List<MetaMesh>)

public void BatchMultiMeshesMultiple(List<MetaMesh> metaMeshes)

Parameters

metaMeshes List<MetaMesh>

CheckMetaMeshExistence(string, int)

public static void CheckMetaMeshExistence(string metaMeshName, int lod_count_check)

Parameters

metaMeshName string
lod_count_check int

CheckResources()

public int CheckResources()

Returns

int

ClearEditData()

public void ClearEditData()

ClearMeshes()

public void ClearMeshes()

ClearMeshesForLod(int)

public void ClearMeshesForLod(int lodToClear)

Parameters

lodToClear int

ClearMeshesForLowerLods(int)

public void ClearMeshesForLowerLods(int lodToClear)

Parameters

lodToClear int

ClearMeshesForOtherLods(int)

public void ClearMeshesForOtherLods(int lodToKeep)

Parameters

lodToKeep int

CopyTo(MetaMesh, bool)

public void CopyTo(MetaMesh res, bool copyMeshes = true)

Parameters

res MetaMesh
copyMeshes bool

CreateCopy()

public MetaMesh CreateCopy()

Returns

MetaMesh

CreateMetaMesh(string)

public static MetaMesh CreateMetaMesh(string name = null)

Parameters

name string

Returns

MetaMesh

DrawTextWithDefaultFont(string, Vec2, Vec2, Vec2, uint, TextFlags)

public void DrawTextWithDefaultFont(string text, Vec2 textPositionMin, Vec2 textPositionMax, Vec2 size, uint color, TextFlags flags)

Parameters

text string
textPositionMin Vec2
textPositionMax Vec2
size Vec2
color uint
flags TextFlags

Fit()

public MatrixFrame Fit()

Returns

MatrixFrame

GetAllMultiMeshes(ref List<MetaMesh>)

public static void GetAllMultiMeshes(ref List<MetaMesh> multiMeshList)

Parameters

multiMeshList List<MetaMesh>

GetBoundingBox()

public BoundingBox GetBoundingBox()

Returns

BoundingBox

GetCopy(string, bool, bool)

public static MetaMesh GetCopy(string metaMeshName, bool showErrors = true, bool mayReturnNull = false)

Parameters

metaMeshName string
showErrors bool
mayReturnNull bool

Returns

MetaMesh

GetFactor1()

public uint GetFactor1()

Returns

uint

GetFactor2()

public uint GetFactor2()

Returns

uint

GetFirstMeshWithTag(string)

public Mesh GetFirstMeshWithTag(string tag)

Parameters

tag string

Returns

Mesh

GetLodMaskForMeshAtIndex(int)

public int GetLodMaskForMeshAtIndex(int index)

Parameters

index int

Returns

int

GetMeshAtIndex(int)

public Mesh GetMeshAtIndex(int meshIndex)

Parameters

meshIndex int

Returns

Mesh

GetMeshCountWithTag(string)

public int GetMeshCountWithTag(string tag)

Parameters

tag string

Returns

int

GetMorphedCopy(string, float, bool)

public static MetaMesh GetMorphedCopy(string metaMeshName, float morphTarget, bool showErrors)

Parameters

metaMeshName string
morphTarget float
showErrors bool

Returns

MetaMesh

GetMultiMesh(string)

public static MetaMesh GetMultiMesh(string name)

Parameters

name string

Returns

MetaMesh

GetName()

public string GetName()

Returns

string

GetTotalGpuSize()

public int GetTotalGpuSize()

Returns

int

GetVectorArgument2()

public Vec3 GetVectorArgument2()

Returns

Vec3

GetVisibilityMask()

public VisibilityMaskFlags GetVisibilityMask()

Returns

VisibilityMaskFlags

HasAnyGeneratedLods()

public bool HasAnyGeneratedLods()

Returns

bool

HasAnyLods()

public bool HasAnyLods()

Returns

bool

HasClothData()

public bool HasClothData()

Returns

bool

HasVertexBufferOrEditDataOrPackageItem()

public bool HasVertexBufferOrEditDataOrPackageItem()

Returns

bool

MergeMultiMeshes(MetaMesh)

public void MergeMultiMeshes(MetaMesh metaMesh)

Parameters

metaMesh MetaMesh

PreloadForRendering()

public void PreloadForRendering()

PreloadShaders(bool, bool)

public void PreloadShaders(bool useTableau, bool useTeamColor)

Parameters

useTableau bool
useTeamColor bool

RecomputeBoundingBox(bool)

public void RecomputeBoundingBox(bool recomputeMeshes)

Parameters

recomputeMeshes bool

ReleaseEditDataUser()

public void ReleaseEditDataUser()

RemoveMeshesWithTag(string)

public int RemoveMeshesWithTag(string tag)

Parameters

tag string

Returns

int

RemoveMeshesWithoutTag(string)

public int RemoveMeshesWithoutTag(string tag)

Parameters

tag string

Returns

int

SetBillboarding(BillboardType)

public void SetBillboarding(BillboardType billboard)

Parameters

billboard BillboardType

SetContourColor(uint)

public void SetContourColor(uint color)

Parameters

color uint

SetContourState(bool)

public void SetContourState(bool alwaysVisible)

Parameters

alwaysVisible bool

SetCullMode(MBMeshCullingMode)

public void SetCullMode(MBMeshCullingMode cullMode)

Parameters

cullMode MBMeshCullingMode

SetEditDataPolicy(EditDataPolicy)

public void SetEditDataPolicy(EditDataPolicy policy)

Parameters

policy EditDataPolicy

SetFactor1(uint)

public void SetFactor1(uint factorColor1)

Parameters

factorColor1 uint

SetFactor1Linear(uint)

public void SetFactor1Linear(uint linearFactorColor1)

Parameters

linearFactorColor1 uint

SetFactor2(uint)

public void SetFactor2(uint factorColor2)

Parameters

factorColor2 uint

SetFactor2Linear(uint)

public void SetFactor2Linear(uint linearFactorColor2)

Parameters

linearFactorColor2 uint

SetFactorColorToSubMeshesWithTag(uint, string)

public void SetFactorColorToSubMeshesWithTag(uint color, string tag)

Parameters

color uint
tag string

SetGlossMultiplier(float)

public void SetGlossMultiplier(float value)

Parameters

value float

SetLodBias(int)

public void SetLodBias(int lodBias)

Parameters

lodBias int

SetMaterial(Material)

public void SetMaterial(Material material)

Parameters

material Material

SetMaterialToSubMeshesWithTag(Material, string)

public void SetMaterialToSubMeshesWithTag(Material bodyMaterial, string tag)

Parameters

bodyMaterial Material
tag string

SetNumLods(int)

public void SetNumLods(int lodToClear)

Parameters

lodToClear int

SetVectorArgument(float, float, float, float)

public void SetVectorArgument(float vectorArgument0, float vectorArgument1, float vectorArgument2, float vectorArgument3)

Parameters

vectorArgument0 float
vectorArgument1 float
vectorArgument2 float
vectorArgument3 float

SetVectorArgument2(float, float, float, float)

public void SetVectorArgument2(float vectorArgument0, float vectorArgument1, float vectorArgument2, float vectorArgument3)

Parameters

vectorArgument0 float
vectorArgument1 float
vectorArgument2 float
vectorArgument3 float

SetVisibilityMask(VisibilityMaskFlags)

public void SetVisibilityMask(VisibilityMaskFlags visibilityMask)

Parameters

visibilityMask VisibilityMaskFlags

UseHeadBoneFaceGenScaling(Skeleton, sbyte, MatrixFrame)

public void UseHeadBoneFaceGenScaling(Skeleton skeleton, sbyte headLookDirectionBoneIndex, MatrixFrame frame)

Parameters

skeleton Skeleton
headLookDirectionBoneIndex sbyte
frame MatrixFrame

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).