x


Per frame testing with the unity editor combined with user input, possible?

Hey everyone! I have a question regarding user input whilst testing inside the editor.

I am trying to get the editor to let me set a variable to true such as RightKeyWasPressedThisFrame by pressing the right key while paused and hitting next frame.

To answer your thought, no, I did not expect that to work, but I was hoping it would.

Is there some way I don't have to meddle with the code and can still get 1 frame to respond to my input in a non-fussy complicated way? It's something I want to use to do quick tests and checks, meaning I don't want a heavy investment in time or activities to achieve this effect.

Does anyone have any idea what a good approach would be to achieve this?

If the question is to hard to understand/interpret or just poorly crafted by me, by all means please say so or ask for a specification or information that will help improve the quality!

Thanks in advance for your time!

more ▼

asked Dec 10 '10 at 07:52 AM

Proclyon gravatar image

Proclyon
1.4k 10 13 32

I dont entirely understand what you're trying to achieve. Do you want a key event in an editor script or do you want a key event in a script with ExecuteInEditMode attribute?

Dec 10 '10 at 03:33 PM Statement ♦♦

Differently put. I pause my scene while running. I hit the next frame button. And I want that next frame to register keyboard input , say, right ctrl was pressed. Is there some super easy low cost way to do that?

Dec 10 '10 at 04:50 PM Proclyon
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1728
x980
x54
x1

asked: Dec 10 '10 at 07:52 AM

Seen: 873 times

Last Updated: Dec 10 '10 at 07:52 AM