CreateUninitializedScriptObject return null for type of array<int>

Started by
2 comments, last by FDsagizi 11 years, 6 months ago
hi smile.png


int type_id = GetTypeIdByDecl( "array<int>" );

void *v1 = CreateUninitializedScriptObject( type_id );

void * v2 = CreateScriptObject( type_id );

v1 == nullptr; :(
v2 is ok!


Advertisement
CreateUninitializedScriptObject only works for script classes.

http://www.angelcode.com/angelscript/sdk/docs/manual/classas_i_script_engine.html#a8fe709ccb1d13977afb35f8726f380fb
Jake's correct. CreateUninitializedScriptObject only works for script classes, and not for registered types. AngelScript wouldn't know how to safely create an uninitialized instance of a registered type.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Ok! I do to modification serealizersmile.png

This topic is closed to new replies.

Advertisement