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"

Load a static mesh based on the name?

Hi! Is there anyway to use a string to load a new static mesh.. for instance in my case I have a series of meshes that I would like to load with a small interval of time, so basically I would like to "key frame" a bunch of meshes to switch between.. And in this case it would be very handy to just be able to dynamically build the staticmesh name, add an index to the string and then swap the old static mesh with the new static mesh based on the new string-name.

Any ideas?

Br, Inx

Product Version: Not Selected
more ▼

asked Jan 13 '15 at 01:27 PM in Blueprint Scripting

avatar image

31 8 12 17

avatar image BramV Oct 09 '15 at 08:16 PM

Looking for this too, in blueprint that is. You can do it in C++ though...

avatar image HSR38 Jan 26 '16 at 01:58 AM

I'm also looking for something like that too. Please devs, give us something!

avatar image artiedee Feb 17 '16 at 07:38 AM

Dont think think its possible to get the name of static mesh from content browser...

avatar image PascalKelm Feb 17 '16 at 08:36 AM

I am a newbie in UE4 and I am not sure to understand your question correct. Do you have a folder including with some static meshes (.obj) connected with some textures (.png) and the material linker (.obj.mtl)? I try to do something similar like you (animation of some static mesh). First of all I imported all obj files by the importer to Unreal. Next, I saved all files to (.uasset). You can use the ObjectLibrary() to load all assets in the folder. Finally, I created an EmptyActor and attached each mesh from the library. Is this what you are looking for?

BeginPlay() TArray ar_asset; UObjectLibrary* ObjectLibrary; ObjectLibrary = UObjectLibrary::CreateLibrary(UStaticMesh::StaticClass(), true, GIsEditor); ObjectLibrary->AddToRoot(); ObjectLibrary->LoadAssetDataFromPath(path); ObjectLibrary->GetAssetDataList(ar_asset);


 st_mesh = Cast<UStaticMesh>(StaticLoadObject(UStaticMesh::StaticClass(), NULL, *ar_name[ar_count], NULL, LOAD_SeekFree, NULL));

avatar image borbs727 Nov 07 '16 at 04:22 PM

I'm also trying to find a way to set a static mesh from a name or string. Any thoughts?

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

I'm also a this point

more ▼

answered Oct 13 '16 at 07:45 PM

avatar image

6 1 3 5

(comments are locked)
10|2000 characters needed characters left
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