Repository navigation
Item Spawn in the editor: place it, pick its model, export and check it (#235) - #135
Merged
Merged
Conversation
…heck it Tools > Mantle > Add Item Spawn puts a Mantle Item Spawn in the level. It exports as an ItemSpawn entity (item always; count, respawnSeconds, model and enabled only when not at their defaults). Its Details panel swaps Model Id for a Static Mesh picker; the exporter turns the picked mesh into its asset id and uploads it with the place. Check holds the spawn to the runtime actor's own rules (ReadProps) and refuses a model that is not a project Static Mesh. Place Settings gets Save World Items, written to settings.worldItems.persistence only when on. Automation tests cover export, the picker, Check and the setting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The editor side of world items (mantle #235, runtime copies in #134):
AMantleItemSpawnPoint.assets[].ItemSpawnentity that writes only the values that differ from the defaults. Problems fromReadPropsare reported at the property they concern.settings.worldItems.persistence = "server", only when it's on.ItemSpawn.Tests: 5 new
Mantle.ItemSpawn.Editortests. Locally,Mantle.ItemSpawn,Mantle.EditorandMantle.Runtime.Placeall passed (558/558) against mantle main 6bd4703a4.🤖 Generated with Claude Code