Hi,all.
I tried register object for using in script and got some errors:
ActorDynamicSky @sky;
sky = &ActorDynamicSky();
Error:Expected expression value
ActorDynamicSky @sky;
sky = @ActorDynamicSky();
Error:illegal operation
But for 2 solution in this theme all is fine.
Object is created how(using angelbinder)
Exporter::Export(*scriptEn)
[
//ActorDynamicSky
Exporter::Class<ActorDynamicSky>(asOBJ_VALUE | asOBJ_APP_CLASS_CDAK | asOBJ_ASHANDLE)
.ctor()
// .ctor<const ActorDynamicSky&>()
.ctor<ActorDynamicSky>()
.ctor<ActorDynamicSky&>()
.dtor()
];