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
materialShaderFlag
string
AddMesh(Mesh)
public void AddMesh(Mesh mesh)
Parameters
mesh
Mesh
AddMesh(Mesh, uint)
public void AddMesh(Mesh mesh, uint lodLevel)
Parameters
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
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
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
CreateCopy()
public MetaMesh CreateCopy()
Returns
CreateMetaMesh(string)
public static MetaMesh CreateMetaMesh(string name = null)
Parameters
name
string
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
tag
string
Returns
GetLodMaskForMeshAtIndex(int)
public int GetLodMaskForMeshAtIndex(int index)
Parameters
index
int
Returns
GetMeshAtIndex(int)
public Mesh GetMeshAtIndex(int meshIndex)
Parameters
meshIndex
int
Returns
GetMeshCountWithTag(string)
public int GetMeshCountWithTag(string tag)
Parameters
tag
string
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
name
string
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
metaMesh
MetaMesh
PreloadForRendering()
public void PreloadForRendering()
PreloadShaders(bool, bool)
public void PreloadShaders(bool useTableau, bool useTeamColor)
Parameters
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
RemoveMeshesWithoutTag(string)
public int RemoveMeshesWithoutTag(string tag)
Parameters
tag
string
Returns
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
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
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
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
visibilityMask
VisibilityMaskFlags
UseHeadBoneFaceGenScaling(Skeleton, sbyte, MatrixFrame)
public void UseHeadBoneFaceGenScaling(Skeleton skeleton, sbyte headLookDirectionBoneIndex, MatrixFrame frame)
Parameters
skeleton
SkeletonheadLookDirectionBoneIndex
sbyteframe
MatrixFrame
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).