浏览代码

Force update point rendering when mode changes

/3.1
Tim Mowrer 5 年前
当前提交
cb0cbf39
共有 1 个文件被更改,包括 11 次插入2 次删除
  1. 13
      Assets/Scenes/PointCloud/ARAllPointCloudPointsParticleVisualizer.cs

13
Assets/Scenes/PointCloud/ARAllPointCloudPointsParticleVisualizer.cs


public Mode mode
{
get => m_Mode;
set => m_Mode = value;
set
{
m_Mode = value;
RenderPoints();
}
void OnPointCloudChanged(ARPointCloudUpdatedEventArgs eventArgs)
{
RenderPoints();
}
void SetParticlePosition(int index, Vector3 position)
{
m_Particles[index].startColor = m_ParticleSystem.main.startColor.color;

}
void OnPointCloudChanged(ARPointCloudUpdatedEventArgs eventArgs)
void RenderPoints()
{
if (!m_PointCloud.positions.HasValue)
return;

正在加载...
取消
保存