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"

Directional Light Set Actor Rotation Only for Movable Light?

I was just curious, because I was trying to modify the rotation of a stationary directional light in the construction script of a blueprint system I am working on. I tried modifying it in the editor through my blueprint and it did not move...is this a known limitation or a bug?

Product Version: Not Selected
Tags:
more ▼

asked Aug 27 '14 at 04:06 AM in Rendering

avatar image

fragfest2012
58 11 11 15

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

1 answer: sort voted first

Hey fragfest2012 -

You should be able to move the light freely, but I want to ask what is the Root component in your blueprint. If the light is the root, add a scene component (basically a placeholder) as the Root with the light underneath it and try to change rotation in the construction script again.

If this doesn't work for you please can you let me know what version of the Engine you are using and is it Compiled or from the Launcher?

Thank You

Eric Ketchum

more ▼

answered Aug 27 '14 at 03:38 PM

avatar image

Lovecraft_K ♦♦ STAFF
36.8k 702 260 734

avatar image fragfest2012 Aug 27 '14 at 05:54 PM

I wasn't clear enough I think. My blueprint is just a scene root and a billboard texture for the editor. It actually modifies/works with actors that are placed in the scene rather than its own components. So in my scene I would have this actor, a directional light actor, and a BP_Sky_Sphere actor; this actor's code affects the other actors.

avatar image Lovecraft_K ♦♦ STAFF Aug 27 '14 at 08:13 PM

Are you cast to the items in your level, or using Blueprint Functions?

Thank You

Eric Ketchum

avatar image fragfest2012 Aug 27 '14 at 08:38 PM

I have a directional light actor variable in my blueprint, which I set to editable. Then I set that variable in the actor's properties in the level to my level's directional light. I use that variable to make changes.

(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