Skip to content

Conversation

@mvaligursky
Copy link
Contributor

@mvaligursky mvaligursky commented Jan 5, 2026

Allow the GSplatComponent.unified property to be changed at runtime without requiring manual disable/enable of the component.

Changes

  • Modified unified setter to automatically destroy and recreate internal data (instance/placement) when the value changes
  • Simplified global-sorting example to demonstrate direct property assignment

Before

comp.enabled = false;
comp.entity.enabled = false;
comp.unified = true;
comp.enabled = true;
comp.entity.enabled = true;

After

comp.unified = true;

@mvaligursky mvaligursky self-assigned this Jan 5, 2026
@mvaligursky mvaligursky added enhancement Request for a new feature area: graphics Graphics related issue labels Jan 5, 2026
@mvaligursky mvaligursky requested a review from a team January 5, 2026 16:01
*
* Note: Material handling differs between modes. When unified is false, use
* {@link GSplatComponent#material}. When unified is true, materials are shared per
* camera/layer - use {@link GSplatComponentSystem#getGSplatMaterial} instead.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not a fan of this naming. I prefer something like GSplatComponentSystem#getMaterial.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep good point, will address separately.

@mvaligursky mvaligursky merged commit 0304e58 into main Jan 5, 2026
7 checks passed
@mvaligursky mvaligursky deleted the mv-gsplat-unified branch January 5, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: graphics Graphics related issue enhancement Request for a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants