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
IsValid
public bool IsValid { get; }
Property Value
MeshCount
public int MeshCount { get; }
Property Value
VectorUserData
public Vec3 VectorUserData { get; set; }
Property Value
Methods
AddEditDataUser()
public void AddEditDataUser()
AddMaterialShaderFlag(string)
public void AddMaterialShaderFlag(string materialShaderFlag)
Parameters
materialShaderFlagstring
AddMesh(Mesh)
public void AddMesh(Mesh mesh)
Parameters
meshMesh
AddMesh(Mesh, uint)
public void AddMesh(Mesh mesh, uint lodLevel)
Parameters
AddMetaMesh(MetaMesh)
public void AddMetaMesh(MetaMesh metaMesh)
Parameters
metaMeshMetaMesh
AssignClothBodyFrom(MetaMesh)
public void AssignClothBodyFrom(MetaMesh metaMesh)
Parameters
metaMeshMetaMesh
BatchMultiMeshes(MetaMesh)
public void BatchMultiMeshes(MetaMesh metaMesh)
Parameters
metaMeshMetaMesh
BatchMultiMeshesMultiple(List<MetaMesh>)
public void BatchMultiMeshesMultiple(List<MetaMesh> metaMeshes)
Parameters
CheckMetaMeshExistence(string, int)
public static void CheckMetaMeshExistence(string metaMeshName, int lod_count_check)
Parameters
CheckResources()
public int CheckResources()
Returns
ClearEditData()
public void ClearEditData()
ClearMeshes()
public void ClearMeshes()
ClearMeshesForLod(int)
public void ClearMeshesForLod(int lodToClear)
Parameters
lodToClearint
ClearMeshesForLowerLods(int)
public void ClearMeshesForLowerLods(int lodToClear)
Parameters
lodToClearint
ClearMeshesForOtherLods(int)
public void ClearMeshesForOtherLods(int lodToKeep)
Parameters
lodToKeepint
CopyTo(MetaMesh, bool)
public void CopyTo(MetaMesh res, bool copyMeshes = true)
Parameters
CreateCopy()
public MetaMesh CreateCopy()
Returns
CreateMetaMesh(string)
public static MetaMesh CreateMetaMesh(string name = null)
Parameters
namestring
Returns
DrawTextWithDefaultFont(string, Vec2, Vec2, Vec2, uint, TextFlags)
public void DrawTextWithDefaultFont(string text, Vec2 textPositionMin, Vec2 textPositionMax, Vec2 size, uint color, TextFlags flags)
Parameters
Fit()
public MatrixFrame Fit()
Returns
GetAllMultiMeshes(ref List<MetaMesh>)
public static void GetAllMultiMeshes(ref List<MetaMesh> multiMeshList)
Parameters
GetBoundingBox()
public BoundingBox GetBoundingBox()
Returns
GetCopy(string, bool, bool)
public static MetaMesh GetCopy(string metaMeshName, bool showErrors = true, bool mayReturnNull = false)
Parameters
Returns
GetFactor1()
public uint GetFactor1()
Returns
GetFactor2()
public uint GetFactor2()
Returns
GetFirstMeshWithTag(string)
public Mesh GetFirstMeshWithTag(string tag)
Parameters
tagstring
Returns
GetLodMaskForMeshAtIndex(int)
public int GetLodMaskForMeshAtIndex(int index)
Parameters
indexint
Returns
GetMeshAtIndex(int)
public Mesh GetMeshAtIndex(int meshIndex)
Parameters
meshIndexint
Returns
GetMeshCountWithTag(string)
public int GetMeshCountWithTag(string tag)
Parameters
tagstring
Returns
GetMorphedCopy(string, float, bool)
public static MetaMesh GetMorphedCopy(string metaMeshName, float morphTarget, bool showErrors)
Parameters
Returns
GetMultiMesh(string)
public static MetaMesh GetMultiMesh(string name)
Parameters
namestring
Returns
GetName()
public string GetName()
Returns
GetTotalGpuSize()
public int GetTotalGpuSize()
Returns
GetVectorArgument2()
public Vec3 GetVectorArgument2()
Returns
GetVisibilityMask()
public VisibilityMaskFlags GetVisibilityMask()
Returns
HasAnyGeneratedLods()
public bool HasAnyGeneratedLods()
Returns
HasAnyLods()
public bool HasAnyLods()
Returns
HasClothData()
public bool HasClothData()
Returns
HasVertexBufferOrEditDataOrPackageItem()
public bool HasVertexBufferOrEditDataOrPackageItem()
Returns
MergeMultiMeshes(MetaMesh)
public void MergeMultiMeshes(MetaMesh metaMesh)
Parameters
metaMeshMetaMesh
PreloadForRendering()
public void PreloadForRendering()
PreloadShaders(bool, bool)
public void PreloadShaders(bool useTableau, bool useTeamColor)
Parameters
RecomputeBoundingBox(bool)
public void RecomputeBoundingBox(bool recomputeMeshes)
Parameters
recomputeMeshesbool
ReleaseEditDataUser()
public void ReleaseEditDataUser()
RemoveMeshesWithTag(string)
public int RemoveMeshesWithTag(string tag)
Parameters
tagstring
Returns
RemoveMeshesWithoutTag(string)
public int RemoveMeshesWithoutTag(string tag)
Parameters
tagstring
Returns
SetBillboarding(BillboardType)
public void SetBillboarding(BillboardType billboard)
Parameters
billboardBillboardType
SetContourColor(uint)
public void SetContourColor(uint color)
Parameters
coloruint
SetContourState(bool)
public void SetContourState(bool alwaysVisible)
Parameters
alwaysVisiblebool
SetCullMode(MBMeshCullingMode)
public void SetCullMode(MBMeshCullingMode cullMode)
Parameters
cullModeMBMeshCullingMode
SetEditDataPolicy(EditDataPolicy)
public void SetEditDataPolicy(EditDataPolicy policy)
Parameters
policyEditDataPolicy
SetFactor1(uint)
public void SetFactor1(uint factorColor1)
Parameters
factorColor1uint
SetFactor1Linear(uint)
public void SetFactor1Linear(uint linearFactorColor1)
Parameters
linearFactorColor1uint
SetFactor2(uint)
public void SetFactor2(uint factorColor2)
Parameters
factorColor2uint
SetFactor2Linear(uint)
public void SetFactor2Linear(uint linearFactorColor2)
Parameters
linearFactorColor2uint
SetFactorColorToSubMeshesWithTag(uint, string)
public void SetFactorColorToSubMeshesWithTag(uint color, string tag)
Parameters
SetGlossMultiplier(float)
public void SetGlossMultiplier(float value)
Parameters
valuefloat
SetLodBias(int)
public void SetLodBias(int lodBias)
Parameters
lodBiasint
SetMaterial(Material)
public void SetMaterial(Material material)
Parameters
materialMaterial
SetMaterialToSubMeshesWithTag(Material, string)
public void SetMaterialToSubMeshesWithTag(Material bodyMaterial, string tag)
Parameters
SetNumLods(int)
public void SetNumLods(int lodToClear)
Parameters
lodToClearint
SetVectorArgument(float, float, float, float)
public void SetVectorArgument(float vectorArgument0, float vectorArgument1, float vectorArgument2, float vectorArgument3)
Parameters
SetVectorArgument2(float, float, float, float)
public void SetVectorArgument2(float vectorArgument0, float vectorArgument1, float vectorArgument2, float vectorArgument3)
Parameters
SetVisibilityMask(VisibilityMaskFlags)
public void SetVisibilityMask(VisibilityMaskFlags visibilityMask)
Parameters
visibilityMaskVisibilityMaskFlags
UseHeadBoneFaceGenScaling(Skeleton, sbyte, MatrixFrame)
public void UseHeadBoneFaceGenScaling(Skeleton skeleton, sbyte headLookDirectionBoneIndex, MatrixFrame frame)
Parameters
skeletonSkeletonheadLookDirectionBoneIndexsbyteframeMatrixFrame
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).