Instancing Decal actors (and other standard actors) in UE4

   5304   3   0
User Avatar
Member
26 posts
Joined: 5月 2013
Offline
Hello all, I'm trying to find a way to spawn directly decal actors from the H-engine in UE4.
Since decal actors (and other default actors) are not assets from the asset browser but instead native actors, I'm not sure how to address them.

I've looked but can't find concrete documentation. Though I understand from changelogs I've read that this should theoretically be supported... ?

Likewise I imagine that I can set the material on the decal actor using the u_property attribute ?

Any information or guides on this?

Sincerely,
Erwin Heyms

Attachments:
unknown.png (1.5 MB)

User Avatar
スタッフ
556 posts
Joined: 9月 2016
Offline
Hi,

I already replied to you on github, but Ill share my answer here for others:

For Decals, IIRC there's two ways you could spawn them via the plugin:

unreal_instance set to a Material path, with the material set to Decal, this should normally spawn the appropriate DecalActor.
unreal_instance set to "DecalActor" will spawn DecalActors, and you can try to use uprop attribute to change params.
User Avatar
Member
2 posts
Joined: 11月 2022
Offline
Hi!

Quickly reviving this old thread. The method above spawns actual decal actors in the scene. Is there a possibility to create instances which work as decals? Or is this an Unreal Limitation?

Thanks!
User Avatar
Member
1 posts
Joined: 9月 2022
Offline
Hi, I'm reopening this thread again, because it seems that I still have the same issue with Decal Actors:

I'm trying to spawn/ scatter Decal Actors instead of geometry in Unreal Engine. They do not appear in engine because the seem to be spawned (and later baked) as static mesh. Baking as Blueprint does not help either.
Even the workaround as spawning Blueprints which hold the Decal Actors does not work. (Meshes in the BP appear, but not the Decals)
I found only one video (and this thread) where someone explains how to spawn decals.

Solution seems to be to create attributes as unreal_instance with a path to the decal actor. But this does not work as well.
I'm a bit at a loss here and hope someone can help 😅

Here is a, hopefully, more detailed explanation of what I tried:
"We are trying to scatter Decal Actors in Unreal Engine, but are running into some issues.
We tried basically two things:
Spawned a point with the "Unreal Instance" attribute that holds the path to the UE Material Instance (also pscale of 1 and Ny of -1). After rebuilding the tool, nothing happens. (image 1)


Instead of spawning a point we spawned a Plane and assigned the Decal Material Instance. That gave us only the mesh in Unreal, which was fully translucent. Any other material does work though. (image 2)"
  • Quick Links