How to locate any components of the actor-blueprint and get access to their properties?

J.Suh
Fri, 24 Feb 2023 02:29:00 +0000
Editor Scripting

Hi

I have a question of how to change properties of components of Blueprint Actor Assets rather than of actors which has been placed in the level.

I am using UE5 currently, and the level artists in my team need a simple tool to help their tweaking the properties. It is, there are some blueprint actor classes they are dealing with, and they should modify some properties such as Max Draw Distance of Static(Skeletal) Mesh Components of the blueprint actor classes.

The hierarchies of the components I need to deal are not strictly determined, so the automation script may need to find components recursively.

Some example of component hierarchy would be like this…

Root Component

Skeletal Mesh

Some Component
– Static Mesh
— Skeletal Mesh

By googling, I could gather some snippets of script such as getting reference of selected assets, filtering out them by asset type and so on… Any helps would be appreciated Thanks!

2 posts - 2 participants