branchrust_reboot/main/viewmodel_scene_flexcancel
67 Commits over 123 Days - 0.02cph!
Don't give the player the selected item (we don't want multiple viewmodels)
Don't override the vm position and allow vm camera renderering, instead allow us to override where the vm camera renders from (for these purposes adjusting it 50m down is fine)
Merge from main (had to stomp BaseViewModel changes)
Now spawning the viewmodel in the world at the correct position by disabling VM camera and adding new editor-only position override bool
Add help text "Press Capslock to use UI" and change default text on FilterInput to "Filter items..."
Equip the item on the player when a button is pressed
Reset the vertical scrollbar position to the top when typing in the filter box
Selecting item buttons from the scroll view now creates a worldmodel and a viewmodel, pressing a different item button replaces it. On player connection, the player's inventory is cleared in the case of having an editor loadout equipped - in preparation for giving the item to the player. Added a skydome to the scene from Playground to resolve lighting errors on some viewmodels
Fixed scrollview position anchoring to remain consistent when maximised
Now generating a struct of ItemDefinition and GameObjectRef to the viewmodel and worldmodel, only adding items with a viewmodel and worldmodel to the list
UI Layout changes. Viewmodel scroll now has a filter text box. Removed old viewmodel UI
Scene now has scrollview populating with a button for every viewmodel in the game with an OnPressed event. Adjusted styling
WIP remaking the ViewModel editor testing scene with flex UI and more functionality. Currently populating every viewmodel to a dropdown