Update lua scripts on "Play Game" in editor

0

I'm using a text editor to edit my lua scripts and pressing ctrl-g in editor to see the changes. Very frequently, the editor does not update the scripts when I change them. Maybe this works if you use the LY Lua IDE, but I don't use that for various reasons. This might also be exacerbated by the fact that some of my scripts use require() - last time I looked into this it seemed LY was doing some funny things that prevented me from even using Lua code to re-load my required scripts.

It would be extremely nice if LY reloaded the scripts from file when you press ctrl-g. Maybe make this an option somewhere. As it is now I have to restart the editor every time I make any change to a script in order to see the effects. I'm not good enough with c++ to figure out how to make these changes in LY myself.

질문됨 6년 전182회 조회
4개 답변
0
수락된 답변

Super valid! I've submitted this to our team for further action :) Thanks @REDACTEDUSER

답변함 6년 전
0

Just wanted to add that I've also been dealing with this. Even when using the in-editor Lua IDE, I would need to either remove->add the the root Lua script from the component, or re-open the level.

답변함 6년 전
0

Thanks @REDACTEDUSER

답변함 6년 전
0

Has this been fixed. I am also experiencing this quite often. From time to time my scripts update properly, however the last few days I need to restart the editor every time I make a change.

답변함 4년 전

이 게시물은 마감됨: 새 답변, 댓글 및 투표 추가가 비활성화되었습니다.

관련 콘텐츠