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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

Spawn actor with original scale?

Hi,

I would like to spawn an actor from ActorClass with its initial scale, my Actor has a scale of -1 on the Y axis but when I spawn it using the "SpawnActor (by class)" node it asks for a transform, this includes scale so I lose the scale it was initially going to be.

This node is hooked up to spawn quite a few different actors of different scales so I would like to know if I can use the scale as specified in the ActorClassBlueprint.

Thanks

Product Version: UE 4.13
Tags:
more ▼

asked Nov 10 '16 at 01:16 PM in Blueprint Scripting

avatar image

KelDG
27 6 8 15

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

1 answer: sort voted first

Hi, If you use blueprint you try right click on the transform circle on SpawnActor(by class) And try Split struct pin. Let's try it!! alt text

ue4.png (145.6 kB)
more ▼

answered Aug 06 '18 at 02:13 AM

avatar image

Fish-1028
45 3 3 8

avatar image Valcare Sep 05 '18 at 09:53 PM

this still only gives a x'1 y'1 z'1 scale its not the original scale of the object especially when your trying to spawn multiple different kinds of objects. I am also having the same problem and the only response I seam to get is export the mesh rescale it in a 3rd party program and reimport it. I feel like this is a terrible work around if im working on a level and I have to rescale an object like a floor tile so to say and its off by like a few CM and now the wall dont line up. I cant just use the in editor scale I have to also export the wall and rescale then reimport this is a headache especially if I dont like it and I need to tweak it a few times to get it the way I want. Also in the OP's post this doesn't make their code reusable they would have to set the scale either by making a new transform or splitting the pins and setting the scale there for every object they want to spawn instead of just feeding in w/e object and having it come out the way its supposed to be.

avatar image Valcare Sep 05 '18 at 09:57 PM

And shortly after posting I found a much easier way https://www.youtube.com/watch?v=IoFK7fKIaaU

(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