I want to add a feature in Unreal Engine Editor where pressing a button will randomly move a selected asset or a created Blueprint within a certain range. I have been trying different methods for the past three days, but nothing has worked. I’m a beginner with Blueprints. I’ve tried asking AI and experimenting, but I haven’t been successful. Could someone please provide advice or guide me on how to achieve this?
Maybe provide some more context as to why you are looking to implement this functionality? Are you simply attempting to place objects randomly on your level?
In the future, I aim to create more complex features, but for now, I want to:
- In the Unreal Engine Editor,
- Press a button to
- Randomly move a selected asset or a specified Blueprint
- Within a defined range
Pressing the button again should move the asset or Blueprint to another random position within that range.
Ultimately, I am working towards creating something that contributes to automatic level design. My final goal is to develop a system where appropriate levels are generated randomly in response to player movement.
I am using an Editor Utility Widget to create the button and have tried setting it up through the On Click event.
Despite trying several approaches, the asset often returns to its origin or fails to move randomly. Most of my attempts do not result in compile errors, but the assets do not move as expected.
Could someone please provide advice or guide me on how to achieve this?
In the future, I aim to create more complex features, but for now, I want to:
- In the Unreal Engine Editor,
- Press a button to
- Randomly move a selected asset or a specified Blueprint
- Within a defined range
Pressing the button again should move the asset or Blueprint to another random position within that range.
Ultimately, I am working towards creating something that contributes to automatic level design. My final goal is to develop a system where appropriate levels are generated randomly in response to player movement.
I am using an Editor Utility Widget to create the button and have tried setting it up through the On Click event.
Despite trying several approaches, the asset often returns to its origin or fails to move randomly. Most of my attempts do not result in compile errors, but the assets do not move as expected.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.