/** * Add a newly created object to the name hash tables and the object array * * @param Name name to assign to this uobject */ void UObjectBase::AddObject(FName InName) { Name = InName; if (!IsInGameThread()) { ObjectFlags |= RF_Async; } AllocateUObjectIndexForCurrentThread(this); check(InName != NAME_None && InternalIndex >= 0); HashObject(this); check(IsValidLowLevel()); }
void VObject::AddObject(INT Index) { if( Index == INDEX_NONE ) { Index = _GObjObjects.size(); _GObjObjects.push_back(NULL); } _GObjObjects[Index] = this; _Index = Index; HashObject(); }