Overview
TheModelRenderer record represents a blueprint renderer that manages the lifecycle of rendered models. It provides methods to create trackers for both location-based (dummy) and entity-based rendering, with support for model profiles and customization.
Record Components
| Component | Type | Description |
|---|---|---|
name | String | The name of the renderer |
type | Type | The renderer type (GENERAL or PLAYER) |
rendererGroups | SequencedMap<BoneName, RendererGroup> | Map of bone groups in the renderer |
animations | Map<String, BlueprintAnimation> | Available animations by name |
Query Methods
groupByTree
name- The bone name to search for
flatten
animation
name- The animation name
Creating Location-Based Trackers
Basic Creation
location- The world location for the modelmodifier- (Optional) Modifier for tracker behavior, defaults toTrackerModifier.DEFAULTpreUpdateConsumer- (Optional) Consumer executed before each update tick
DummyTracker instance
Example:
With Model Profile
location- The world locationprofile- The model profile or its uncompleted variantmodifier- (Optional) Tracker modifierpreUpdateConsumer- (Optional) Pre-update callback
Creating Entity-Based Trackers
Basic Entity Trackers
entity- The platform entity or BaseEntity to attach tomodifier- (Optional) Tracker modifierpreUpdateConsumer- (Optional) Pre-update callback
EntityTracker instance
Example:
Entity Trackers with Profile
Get or Create Pattern
EntityTracker
Example:
BaseEntity Variants
AllPlatformEntity methods have corresponding BaseEntity variants:
BaseEntity instead of PlatformEntity.
Example:
Renderer Type
- GENERAL - Standard models that can be saved
- PLAYER - Player-specific models that cannot be saved
Complete Example
See Also
- RenderPipeline - The rendering pipeline created by trackers
- RenderSource - Source abstraction for rendering context
- Tracker - Base tracker interface
- Blueprint - Blueprint that contains the renderer
