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"

Dynamically spawned actors aren't scaled correclty

I imported an asset which ended up being very small (I know I could re-size and re-import but I want to know all my options).

I corrected this by putting it into a blueprint and scaling its transform. Now when I drag it into the scene it is the correct scale.

However, when I spawn this blueprint at runtime (using Spawn Actor From class) the thing is tiny again. What am I doing wrong?

EDIT - this is where I'm scaling it, in the components part of the class blueprint.

alt text

Product Version: Not Selected
Tags:
prablem.png (116.8 kB)
more ▼

asked Aug 28 '14 at 10:46 AM in Blueprint Scripting

avatar image

Asher S Einhorn
650 94 80 182

avatar image bennetherwood Aug 28 '14 at 01:43 PM

can you give a sceenshot of blueprint?

avatar image savagebeasty Aug 28 '14 at 02:01 PM

This doesn't answer your question but just as word of warning about scaling to save you the pain I went through, if you're going to use the asset as a physics object or a trigger in some way, scaling it in the blueprint components causes all sorts of problems i.e. if it's a trigger you'll find that it still uses the original scale for collisions causing great confusion when it looks like your collision isn't working when technically it is, you're best off getting the scale correct in your modelling app and reimporting.

avatar image Asher S Einhorn Aug 28 '14 at 02:04 PM

That's a very very useful thing to know nonetheless. thank you!

avatar image bennetherwood Aug 28 '14 at 02:06 PM

SavageBeasty to rectify that use a say box component to tigger an event instead of mesh collision and parent the mesh to box, that way you can scale mesh in components tab to fit added trigger bound

avatar image savagebeasty Sep 01 '14 at 10:49 AM

@bennertherwood - the problem I had was having a trigger volume in the component setup which is fine, the problem comes when you want to resize the trigger volume when it's placed in a level the scaling doesn't work.

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

1 answer: sort voted first

Ow I went through this :D you can't scale the root or transform or rotate it, where your current root is the "hex" mesh you need to add a scene component and call it root, the add a static mesh component with "hex", you may have to remake the blueprint this way

more ▼

answered Aug 28 '14 at 02:12 PM

avatar image

bennetherwood
189 22 23 34

avatar image Asher S Einhorn Aug 28 '14 at 02:13 PM

ah ok, good knowledge, let me try it now. Strange though because it works if I simply drag it into the scene.

avatar image bennetherwood Aug 28 '14 at 02:17 PM

Let us know if it works

avatar image Asher S Einhorn Aug 28 '14 at 02:26 PM

Wow OK, super newbie question, is a scene component like an empty game object in unity? like an empty transform? How do I add one? thanks!

avatar image bennetherwood Aug 28 '14 at 02:32 PM

Didn't use unity much so can't say. But yes I think so, it's kind of a reference point for all transformation, rotations and scales to be applied to children components. So in an empty actor blueprint you have a empty root component, from drop down list type scene and select it, then name it e.g. Root, the add static mesh components for your hex and trees (which automatically become children of root)

avatar image Asher S Einhorn Aug 28 '14 at 02:43 PM

Yep that did it! thank you so much! Just FYI I didn't have to remake the blueprint, you can just drag anything onto the root and it makes it the new root. simple! Man I love UE4! Goodbye Unity, it was fun...

(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