Pick a random unit vector; Spawn thing with location = SphereCenter + RandomVector*SphereRadius, the rotation can be set from the same RandomVector, add extra constant rotation if it isnt enough.
If you need to pick point from mouse, then something like ConvertMouseLocationToWorldSpace, but then you isn’t limited to sphere
But this scheme is just a random sketch that does nothing, I have no clue how to get it into actual points in a regular blueprint, this is a special one:
Getting the mesh from a blueprint is quite the tricky task using this PCG system, but here is how you do it!
First make sure you have the PCG Geometry Script plugin enabled. Then you want to go to your blueprint and add the PCG graph as a component.
In your PCG graph, you need the Get Actor Property node. This lets you look for certain components inside the actor. Your Actor Filter should be set to self because self would be the blueprint you’ve added the PCG component to. Property Name should be the name of your mesh inside the blueprint. In my case its “StaticMeshRef” then you need to output this attribute name to feed into the Mesh Sampler so it knows which mesh to sample. The sampling method and seed can of course be whatever you want. Then you need to get actor data and copy those points, now it should place points on your mesh when its in the world without a PCG volume.
(Ignore the scale inheritance, that’s not relevant for this)