UIMaterialInstantiator.TryCreateMaterialCopy(Graphic) Method
Definition
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.
Invoke this method to create a copy of the material and use that copy at runtime for Graphic objects to prevent modifying materials in editor or impact shared materials.
public:
static void TryCreateMaterialCopy(UnityEngine::UI::Graphic ^ targetGraphic);
public static void TryCreateMaterialCopy (UnityEngine.UI.Graphic targetGraphic);
static member TryCreateMaterialCopy : UnityEngine.UI.Graphic -> unit
Public Shared Sub TryCreateMaterialCopy (targetGraphic As Graphic)
Parameters
- targetGraphic
- UnityEngine.UI.Graphic
Graphic element that needs to clone its material