スポットライトやポイントライトについての質問

ご質問失礼します。UE5を最近始めました、初心者です。
良ければお力添えをいただきたく願います。・

ご質問内容なのですが、プレイテスト中に ポイントライト や スポットライトをマウスで選択したのち、
特定のキーやボタンで
ON(カンデラ(cd)を一定の値にする)
OFF(カンデラ(cd)ぼ値を0にする)
をブループリント内で処理したいのですが、どなたか有識者の方、貴重なお時間を少し私に割いていただけますでしょうか。
是非よろしくお願い致します

so to be sure, during runtime you wish to select a light and change its luminence to 0 or a set value? or even toggle enabled or dissabled? on mouse click or a key press?

sorry google translate:-

確かに、実行時にライトを選択し、その輝度を0または設定値に変更したいですか?または、有効または無効を切り替えますか?マウスクリックまたはキー押下?

1 Like

I’m so sorry for the late reply… :pensive:
I want to select a light at runtime and change its brightness to 0 or a set value!
If possible, I would like you to teach me both.
Thanks for translating!!! :D

Sorry for my late reply also!

Ok this requires several stages.

The actual changing of the light value is simple using blueprints, however the interaction is the slightly more complex part.

You need to decide on either:

  1. Mouse click
  2. Character Aim with button press.

Theres probably more ways but this is the most simplest form.

Unfortunatley just writing code here for you wont teach you a thing except copy and paste.

So decide which method you wish to use then have a look at the many many tutorials on interacting with objects.

So… search these in google (not sure if im allowed to direct link)

1.how to interact with objects using a mouse in unreal engine (for mouse interaction)

2.how to interact with objects using a character controller in unreal engine (for key presses and character based input)

Both bring back a variety of tutorials and they should help you understand what you are doing as well as achieving your goals!

Thanks

Stewart