unreal.DatasmithContentLibrary
¶
- class unreal.DatasmithContentLibrary(outer=None, name='None')¶
Bases:
unreal.BlueprintFunctionLibrary
Datasmith Content Blueprint Library
C++ Source:
Plugin: DatasmithContent
Module: DatasmithContent
File: DatasmithContentBlueprintLibrary.h
- classmethod get_all_datasmith_user_data(object_class)¶
Find all Datasmith User Data of loaded objects of the given type. This is a slow operation, so editor only.
- classmethod get_all_objects_and_values_for_key(key, object_class) -> (out_objects=Array(Object), out_values=Array(str))¶
Find all loaded objects of the given type that have a Datasmith User Data that contains the given key and their associated values. This is a slow operation, so editor only.
- Parameters
- Returns
out_objects (Array(Object)): Output array of objects for which the Datasmith User Data match the given key.
out_values (Array(str)): Output array of values associated with each object in OutObjects.
- Return type
tuple
- classmethod get_datasmith_user_data(object) DatasmithUserData ¶
Get the Datasmith User Data of a given object
- Parameters
object (Object) – The Object from which to retrieve the Datasmith User Data.
- Returns
The Datasmith User Data if it exists; nullptr, otherwise
- Return type
- classmethod get_datasmith_user_data_keys_and_values_for_value(object, string_to_match) -> (out_keys=Array(Name), out_values=Array(str))¶
Get the keys and values for which the associated value contains the string to match for the Datasmith User Data of the given object.
- Parameters
- Returns
out_keys (Array(Name)): Output array of keys for which the associated values contain the string to match.
out_values (Array(str)): Output array of values associated to the keys.
- Return type
tuple