yes you are absolutely right!
CreateUninitializedScriptObject work from c++ - and this good, but def counstructor we can use from script - it's not good!
I want to even when the flag is set, it shows an error - not defined a default constructor( only from script ).
ex:
// asEP_ALWAYS_IMPL_DEFAULT_CONSTRUCT, false
class SomeClass{
SomeClass( int init_param ){}
}
void f(){
SomeClass s; // No default constructor for object of type 'SomeClass'.
}
//-----------------------------------------------------------------------------
//next
// asEP_ALWAYS_IMPL_DEFAULT_CONSTRUCT, true ( current time )
class SomeClass{
SomeClass( int init_param ){}
}
void f(){
SomeClass s; // work
}
//-----------------------------------------------------------------------------
// a want to, we set asEP_ALWAYS_IMPL_DEFAULT_CONSTRUCT true, and we have -
class SomeClass{
SomeClass( int init_param ){}
}
void f(){
SomeClass s; // No default constructor for object of type 'SomeClass'.
}
// add constructor
class SomeClass{
SomeClass(){ /* def constructor */ }
SomeClass( int init_param ){}
}
void f(){
SomeClass s; // work
}