# OnAddRenderCommands Source: https://www.nianticspatial.com/docs/api/unity/NianticSpatial.NSDK.AR.Common.ConditionalRenderer.OnAddRenderCommands/ OnAddRenderCommands Invoked when it is time to add rendering commands to the command buffer. --- ## Declaration protected abstract bool OnAddRenderCommands(CommandBuffer cmd, Material mat) #### Summary Invoked when it is time to add rendering commands to the command buffer. #### Returns Whether the command buffer could be successfully configured. ### Parameters | Name | Type | Summary | | --- | --- | --- | | cmd | CommandBuffer | The command buffer resource. | | mat | Material | The material that should be used to draw the frame. | ---