Created
February 17, 2023 11:32
-
-
Save rondreas/4969cf2f089930a099ee1ab42d0d7fda to your computer and use it in GitHub Desktop.
Testing new asset registry method for getting assets by class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unreal | |
if __name__ == "__main__": | |
asset_registry = unreal.AssetRegistryHelpers.get_asset_registry() | |
static_class = unreal.StaticMesh.static_class() | |
package = static_class.get_package() | |
top_level_asset = unreal.TopLevelAssetPath(package.get_name(), static_class.get_name()) | |
static_meshes = asset_registry.get_assets_by_class(top_level_asset) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment