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 get Mesh out of Class Ref

Hey, im rather new to Ue4 and i would like to ask if its Possible to get a Mesh out of a Class Reference? alt text

Product Version: UE 4.20
11.png (160.0 kB)
more ▼

asked Feb 13 '19 at 06:24 PM in Blueprint Scripting

avatar image

7 1 1 5

avatar image ThompsonN13 Feb 14 '19 at 12:25 AM

did a bit of looking and it doesnt seem like something thats possible. in your case though you could jsut have the mesh as part of your struct.

avatar image xXKrusty_ Feb 16 '19 at 02:50 AM

hmm yeah thats the way im going with right now. seems like i have to keep it that way. Thanks anyways

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

1 answer: sort voted first

It can be done if your class reference is specific and if the "mesh" is a variable in that class. The variable issue isn't a problem, neither is making a class reference. This should work if you have all your weapons parented to a master class. So basically create a master class, create child blueprints from it for all your weapons. In the master class create a variable to change the mesh. Once you have that in your struct specify the class variable to be "master weapon" then you will be able to pull the mesh out of the default variables and set it.

alt text

class-defaults.jpg (113.4 kB)
more ▼

answered Feb 16 '19 at 06:41 AM

avatar image

Nebula Games Inc
5.4k 28 9 15

avatar image xXKrusty_ Feb 24 '19 at 07:26 PM

get class defaults for some reason doenst show different Mesh and Texture type variables...

avatar image Nebula Games Inc Feb 24 '19 at 09:11 PM

Yea that's odd. However, I just tested this and you are able to get Mesh and Texture data from class defaults out of a struct. So just store all that stuff in one struct variable and you will be able to break it and get the necessary info.

alt text

(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