LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.
Experimental: this API is experimental and might be changed or removed in the future.

DrawRendererSortSettings.cameraPosition

public Vector3 cameraPosition;

Description

Camera position, used to determine distances to objects.

Together with worldToCameraMatrix, this is used to determine distances to objects for sorting.

See Also: DrawRendererSettings, RenderLoop.DrawRenderers.