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"

Is it possible to access an instance of blueprint from console at runtime?

How does one access an instance of a blueprint from the console at runtime?

I see "AssetRegistry" in the list of console commands, but something like this isn't working:

 > AssetRegistry.GetByName("MyObject")

In theory I'd like to be able to do something like this, where MyMethod() is defined in the Blueprint's class:

 > AssetRegistry.GetByName("MyObject").MyMethod()

Is this possible? Is "AssetRegistry" not the command I'm looking for?

Product Version: Not Selected
Tags:
more ▼

asked Apr 21 '14 at 05:08 PM in C++ Programming

avatar image

afuzzyllama
105 18 21 26

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

1 answer: sort voted first

Console commands does not work like code and can't call commands that are not registered

You can make new commands easily in C++ out of function by adding "Exec" argument flag to UFUNCTION() but it work only for specific classes. I didn't seen equivalent of that in blueprint but you can inherit exec function from c++ class. This way you might find a way to make command that you looking for

more ▼

answered Apr 21 '14 at 06:48 PM

avatar image

Shadowriver
36.6k 932 169 1111

(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