Right now the point cloud prefab uses a particle system of which we can set the color, size and material.
Only setting color/size/material is pretty limited. Would it be possible to allow us to set more properties?
Specifically I would want to control the color/alpha over lifetime, and also I want to add noise to the position of the particles (only visually of course). Also instead of just having a constant size, I would want to have a random size between 2 constants. I’m already setting this in the particle system inspector, but ARPointCloudParticleVisualizer.cs just doesn’t pick up on it.
If anybody knows a way to control these types of things, that would be great!
I’m afraid you have to write a custom ARPointCloudParticleVisualizer to support these features. The current implementation sets these particle properties, so any modification done in ParticleSystem inspector will be overwritten:
for (int i = 0; i < numParticles; ++i)
{
m_Particles[i].startColor = color;
m_Particles[i].startSize = size;
m_Particles[i].position = points[i];
m_Particles[i].remainingLifetime = 1f;
}