deletes the Unity sorting group component comp.
deletes the Unity sorting group component attached to the UnityGameObject obj.
deletes the Unity sorting group component with the specified name.


DeleteUnitySortingGroup
deletes the Unity sorting group component comp.
deletes the Unity sorting group component attached to the UnityGameObject obj.
deletes the Unity sorting group component with the specified name.
Details and Options
- DeleteUnitySortingGroup destroys the Unity sorting group component, and releases all references to it.
- DeleteUnitySortingGroup[All] destroys all the sorting group components in the current scene.
- DeleteUnitySortingGroup is Listable.
Examples
open all close allBasic Examples (1)
Possible Issues (1)
A UnitySortingGroup cannot be accessed after deletion:

Related Guides
Text
Wolfram Research (2019), DeleteUnitySortingGroup, Wolfram Language function, https://reference.wolfram.com/language/UnityLink/ref/DeleteUnitySortingGroup.html.
CMS
Wolfram Language. 2019. "DeleteUnitySortingGroup." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/UnityLink/ref/DeleteUnitySortingGroup.html.
APA
Wolfram Language. (2019). DeleteUnitySortingGroup. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/UnityLink/ref/DeleteUnitySortingGroup.html
BibTeX
@misc{reference.wolfram_2025_deleteunitysortinggroup, author="Wolfram Research", title="{DeleteUnitySortingGroup}", year="2019", howpublished="\url{https://reference.wolfram.com/language/UnityLink/ref/DeleteUnitySortingGroup.html}", note=[Accessed: 16-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_deleteunitysortinggroup, organization={Wolfram Research}, title={DeleteUnitySortingGroup}, year={2019}, url={https://reference.wolfram.com/language/UnityLink/ref/DeleteUnitySortingGroup.html}, note=[Accessed: 16-August-2025]}