Navigation
API > API/Plugins > API/Plugins/CustomizableObjectPopulation > API/Plugins/CustomizableObjectPopulation/MuCOP
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UCustomizableObjectPopulation
References
| Module | CustomizableObjectPopulation |
| Header | /Engine/Plugins/Experimental/Mutable/Source/CustomizableObjectPopulation/Classes/MuCOP/CustomizableObjectPopulation.h |
| Include | #include "MuCOP/CustomizableObjectPopulation.h" |
Syntax
UCLASS&40;Blueprintable, BlueprintType&41;
class UCustomizableObjectPopulation : public UObject
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FClassWeightPair > | ClassWeights | List of Pupulation classes that define this population | |
| FString | Name | Name of the customizable object population |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | CompilePopulation
(
UCustomizableObjectPopulationGenerator* NewGenerator |
||
| int32 | GeneratePopulation
(
TArray< UCustomizableObjectInstance* >& OutInstances, |
Returns the seed that was used to create instances in this call of the GeneratePopulation. Returns -1 if no generator was found. | |
| bool | HasGenerator () |
||
| bool | Allows the compilation of this population only if all its classes exist | ||
| bool | RegeneratePopulation
(
int32 Seed, |
Returns false if no generator was found. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginCacheForCookedPlatformData
(
const ITargetPlatform* TargetPlatform |
Starts caching of platform specific data for the target platform Called when cooking before serialization so that object can prepare platform specific data Not called during normal loading of objects | |
| bool | IsCachedCookedPlatformDataLoaded
(
const ITargetPlatform* TargetPlatform |
Have we finished loading all the cooked platform data for the target platforms requested in BeginCacheForCookedPlatformData |