함수 오버라이드 시에는 반환 노드를 추가 하고 반환 변수를 하나 추가해 줘야
Overriding a function creates an Event instead of making a new function
In 4.8.1, I have a class where if I override a function in a child class, an event will be created by the name of the function instead of creating a new function. Other classes and their children will properly do this.
Is there a setting that changes this functionality, or is there something funky going on here?
add new comment
Yeah have the same bug. It seems like event is created instead of function if overridable function has not return value. So what I'm doing - is:
1) Create a function in parent class. Ex SomeFunction.
2) Make this function to return a some Boolean value (in Outputs section.)
3) Override this function in child class (it's now should create as normal function, not like event.)
4) Delete Boolean value in parent.
5) Delete Boolean value in child.
6) Compile parent class.
7) Compile child class.
P.S. I'm using 4.11 of UE.
In 4.8.1, I have a class where if I override a function in a child class, an event will be created by the name of the function instead of creating a new function. Other classes and their children will properly do this. Is there a setting that changes this functionality, or is there something funky going on here? add new comment |
Yeah have the same bug. It seems like event is created instead of function if overridable function has not return value. So what I'm doing - is: 1) Create a function in parent class. Ex SomeFunction. 2) Make this function to return a some Boolean value (in Outputs section.) 3) Override this function in child class (it's now should create as normal function, not like event.) 4) Delete Boolean value in parent. 5) Delete Boolean value in child. 6) Compile parent class. 7) Compile child class. P.S. I'm using 4.11 of UE. |
https://answers.unrealengine.com/questions/250023/overriding-a-function-creates-an-event-instead-of.html#answer-417889
'게임엔진(GameEngine) > Unreal4' 카테고리의 다른 글
실행도중 레벨 열기 Level streaming (0) | 2016.06.22 |
---|---|
Pure 함수 Impure 함수 (const function) (0) | 2016.06.10 |
컨스트럭션 스크립트 (0) | 2016.06.10 |
마테네 카메라 그룹에 이벤트 트렉을 추가하여 이벤트 발동 시키기 (0) | 2016.06.03 |
액터는 자동 소멸이 아니다 (0) | 2016.06.02 |