unreal.GeometryCache

class unreal.GeometryCache(outer: Object | None = None, name: Name | str = 'None')

Bases: Object

A Geometry Cache is a piece/set of geometry that consists of individual Mesh/Transformation samples. In contrast with Static Meshes they can have their vertices animated in certain ways. *

C++ Source:

  • Plugin: GeometryCache

  • Module: GeometryCache

  • File: GeometryCache.h

Editor Properties: (see get_editor_property/set_editor_property)

  • asset_import_data (AssetImportData): [Read-Only] Importing data and options used for this Geometry cache object

  • asset_user_data (Array[AssetUserData]): [Read-Write] Array of user data stored with the asset

  • end_frame (int32): [Read-Write]

  • material_slot_names (Array[Name]): [Read-Write]

  • materials (Array[MaterialInterface]): [Read-Write]

  • start_frame (int32): [Read-Write]

  • thumbnail_info (ThumbnailInfo): [Read-Only] Information for thumbnail rendering

  • tracks (Array[GeometryCacheTrack]): [Read-Only] GeometryCache track defining the samples/geometry data for this GeomCache instance

add_asset_user_data_of_class(user_data_class) bool

Creates and adds an instance of the provided AssetUserData class to the target asset.

Parameters:

user_data_class (type(Class)) – UAssetUserData sub class to create

Returns:

Whether or not an instance of InUserDataClass was succesfully added

Return type:

bool

property end_frame: int

[Read-Only]

Type:

(int32)

get_asset_user_data_of_class(user_data_class) AssetUserData

Returns an instance of the provided AssetUserData class if it’s contained in the target asset.

Parameters:

user_data_class (type(Class)) – UAssetUserData sub class to get

Returns:

The instance of the UAssetUserData class contained, or null if it doesn’t exist

Return type:

AssetUserData

has_asset_user_data_of_class(user_data_class) bool

Checks whether or not an instance of the provided AssetUserData class is contained.

Parameters:

user_data_class (type(Class)) – UAssetUserData sub class to check for

Returns:

Whether or not an instance of InUserDataClass was found

Return type:

bool

property material_slot_names: None

[Read-Write]

Type:

(Array[Name])

property materials: None

[Read-Write]

Type:

(Array[MaterialInterface])

property start_frame: int

[Read-Only]

Type:

(int32)