Open DragonRoared opened 6 years ago
Hi, call post_edit_change()
sorry,I change my code ,but nothing has changed. this is my code
import unreal_engine as ue
from unreal_engine import FVector
from osmread import parse_file, Way,Node
import PyGIS
selectClass=ue.editor_get_selected_actors()[0] # WayPointList
print(len(selectClass.oneList))
selectClass.set_property('oneList',[FVector(0,0,0),FVector(1,1,1),FVector(2,2,2)])
selectClass.post_edit_change()
print(len(selectClass.oneList))
this is my editor setting and output
I tried function ‘post_edit_change’ ‘post_edit_change_property’ ‘pre_edit_change’ ,all not resolved , I use the latest version plugins,UE4 is 4.19 ,thank you
Hi, i think it is not clear what kind of value you want to show. By changing an actor you are changing the values of that istance. If you want to change the default values of a class/blueprint you need to change it GeneratedClass
I want to write data into a variable in editor, here is my code
function ‘InputData’ is a print list lenght
this is my output log
but the editor doesn't change anything.
What should I do?thank you