Class ModelSceneNode
- Namespace
- ValveResourceFormat.Renderer
- Assembly
- Renderer.dll
Scene node for rendering animated models with skeletal animation and morph targets.
public class ModelSceneNode : MeshCollectionNodeInheritance
Inherited Members
Constructors
ModelSceneNode(Scene, Model, string?, bool)
public ModelSceneNode(Scene scene, Model model, string? skin = null, bool isWorldPreview = false)Parameters
Properties
ActiveMaterialGroup
public string ActiveMaterialGroup { get; }Property Value
AnimationController
public AnimationController AnimationController { get; }Property Value
HasMeshes
public bool HasMeshes { get; }Property Value
IsAnimated
public bool IsAnimated { get; }Property Value
Tint
public override Vector4 Tint { get; set; }Property Value
Methods
Delete()
public override void Delete()GetActiveMeshGroups()
public ICollection<string> GetActiveMeshGroups()Returns
GetLod1RefMeshes()
public IEnumerable<(int MeshIndex, string MeshName, long LoDMask)> GetLod1RefMeshes()Returns
GetMeshBoneIndex(int, RenderableMesh)
public int GetMeshBoneIndex(int modelBoneIndex, RenderableMesh mesh)Parameters
modelBoneIndexintmeshRenderableMesh
Returns
GetMeshGroups()
public IEnumerable<string> GetMeshGroups()Returns
GetSupportedAnimationNames()
public IEnumerable<string> GetSupportedAnimationNames()Returns
GetSupportedRenderModes()
public override IEnumerable<string> GetSupportedRenderModes()Returns
SetActiveMeshGroups(IEnumerable<string>)
public void SetActiveMeshGroups(IEnumerable<string> setMeshGroups)Parameters
setMeshGroupsIEnumerable<string>
SetAnimation(string)
public void SetAnimation(string animationName)Parameters
animationNamestring
SetAnimation(Animation?)
public void SetAnimation(Animation? activeAnimation)Parameters
activeAnimationAnimation?
SetAnimationForWorldPreview(string)
public bool SetAnimationForWorldPreview(string animationName)Parameters
animationNamestring
Returns
SetCharacterEyeRenderParams()
public void SetCharacterEyeRenderParams()SetMaterialGroup(string)
public void SetMaterialGroup(string name)Parameters
namestring
Update(UpdateContext)
public override void Update(Scene.UpdateContext context)Parameters
contextScene.UpdateContext