#@Ruiner got another relatively dumb

1 messages ยท Page 1 of 1 (latest)

ruby quail
#

do i need to do a component selection as well?

tired orchid
#

do it by actor tag, not component tag

ruby quail
#

i already see the problem ๐Ÿ˜„

tired orchid
#

๐Ÿ‘

ruby quail
#

that did it, sorry about that ๐Ÿ˜„

tired orchid
#

you use component tags if it's something like a blueprint that also houses a PCG component

ruby quail
#

@tired orchid speaking of which, is there any way to pass in a custom float to the PCG on demand?

#

i'm generating the PCG component when new rounds start

#

Series of videos to learn how to use the Procedural Generation Content plugin in UE 5.2/5.3.
This fifth video talks about:

  • How to create generic graphs in PCG with Graph Parameters
  • How to create Graph Instances
  • How to Generate at runtime, switching graph/parameters

DISCLAIMER: This plugin is still in experimental mode, to learn more about...

โ–ถ Play video
#

answered here actually, ty!

tired orchid
#

you can get or set like this from a BP:

#

had to dig through my UI stuff to remember how lol

#

but you get all actors of class PCG volume, then get the component, then get the graph from that and from the graph, you can get/set variables you want. in this case, i'm doing a float

ruby quail
#

i guess this isn't possible?

tired orchid
#

don't use the $ symbol

#

that's for the default variables on every point

ruby quail
#

ah right, but even without it it still fails

tired orchid
#

oh you need to get the parameter, i think in 5.6 you can now reference them directly in nodes like that though

ruby quail
#

ah crap

#

no way im gonna upgrade to 5.6 ๐Ÿ˜ข

#

that's alright, i think i can drop down to CPP for some pcgen

tired orchid
#

there's an actual density attribute already in every point

#

it's $Density

ruby quail
#

right so this is coming from the round level

#

as the rounds go up, that float goes higher

#

so it's not really a good name for the parameter

tired orchid
#

okay, so you can copy that value from ClusterDensity to $Density

#

or use it elsewhere

ruby quail
#

with Copy Attributes?

tired orchid
#

yeah or set

#

probably set

#

like here's an example of how to use a parameter with points

ruby quail
#

oh shit, like this?

tired orchid
#

yep

ruby quail
#

it worked, fabulous. ty!!!

tired orchid
#

np, it takes a LOT of getting used to. it's quite a bit different than regular BPs

ruby quail
#

i already have lots of XP with PCG, just returning so i completely forgot everything ๐Ÿ™‚

tired orchid
#

well i spend lots of time with pcg and constantly forget everything, so don't feel bad

ruby quail
#

well not everything, but enough ๐Ÿ˜‚ it's a beast of a tool