x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Activate the button from the viewport

Hey, I have a question how to activate the button from the viewport?

Product Version: UE 4.21
Tags:
more ▼

asked Mar 02 '19 at 09:42 AM in Using UE4

avatar image

cedom96
11 3 1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

uh can u please elaborate your question?

more ▼

answered Mar 02 '19 at 09:47 AM

avatar image

SupDeity
468 4 7 15

avatar image cedom96 Mar 02 '19 at 11:01 AM

I have a button to turn the light on and off, I would like to run it in viewport. Not in the game.

avatar image Everynone Mar 02 '19 at 12:52 PM

I would like to run it in viewport. Not in the game.

Viewport = game window, hence the confusion.


Do you want to control something out of PIE (play in editor). Perhaps you're looking for Blutilities a.k.a. Blueprint Utilities:

A Blueprint Utility, a.k.a. a Blutility, is an editor-only Blueprint that can be used to perform editor actions or extend editor functionality. These can expose Events with no parameters as buttons in the UI and have the ability to execute any functions exposed to Blueprints and act on the current set of selected Actors in the viewport.

avatar image ThompsonN13 Mar 02 '19 at 03:50 PM

to create a event that can be called in the editor you simply need to have a custom event for the script you want to run, then select the event and in the details panel check the box which says call in editor. this will make it so when the actor is selected in the viewport you will have a button in the details panel to run the event.

alt text

capture.png (40.1 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question