I have a blueprint for NPCs, and i have a PaperSprite component which is the minimap symbol so important NPCs are represented in the minimap. It’s way up in the Z axis so this is always visible no matter where the NPC character Z axis is.
The problem is, when i’m editing the level and i want to focus (F) the NPC blueprint, the editor camera goes way up when there is the PaperSprite component. How can i keep the component in that location without affecting the view distance on the editor when i focus that actor? Thanks in advance
Hi there,
To keep the PaperSprite component at the desired location without affecting your focus distance in the editor, I like to use a visible bool variable that I can just check/uncheck while editing to make the changes fast. You can set up a boolean variable, like bIsEditing
, and use it to control the visibility of the PaperSprite component.
In the Construction Script or an Editor Utility Widget, you can check the value of this variable. If bIsEditing
is true, set the visibility of the PaperSprite to false, and if it’s false, set the visibility back to true. This way, when you’re working in the editor, you can easily toggle the visibility of the sprite without it affecting your workflow.
This allows you to focus on the NPC without the camera zooming out too far. Once you’re done editing, you can uncheck the variable to ensure the sprite is in the correct position for gameplay.
Hope this helps! If you need more details, feel free to ask.
Thanks for your answer! I did set visibility to false, and even if i set the papersprite hidden in game to true, the focus distance remains the same.
This is the node setup i used but nothing happens. This is a child blueprint but is not heritating anything regarding PaperSprite component.
And this is the in-editor view of the component. It’s applying the construction setup fine.
Do you know what could be preventing my desire? Thanks again!