ClippingPrimitive.ApplyToSharedMaterial Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Toggles whether the clipping features will apply to shared materials or material instances (default).
C++
public:
property bool ApplyToSharedMaterial { bool get(); void set(bool value); };
public bool ApplyToSharedMaterial { get; set; }
member this.ApplyToSharedMaterial : bool with get, set
Public Property ApplyToSharedMaterial As Boolean
Applying to shared materials will allow for GPU instancing to batch calls between Renderers that interact with the same clipping primitives.
Product | Versions |
---|---|
MRTK2 Unity 2018 | 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.6.0, 2.7.0, 2.8.0 |