docs.unity3d.com
    Show / Hide Table of Contents

    Class MaterialPropertiesClipboardData

    Clipboard data that is used for copy/paste material properties of MaterialSwitchClip

    Inheritance
    Object
    MaterialPropertiesClipboardData
    Namespace: Unity.MaterialSwitch
    Syntax
    public class MaterialPropertiesClipboardData

    Methods

    Create(MaterialSwitchClip, Int32)

    Create material properties clipboard data of MaterialSwitchClip that can be pasted on another MaterialSwitchClip

    Declaration
    [NotNull]
    public static MaterialPropertiesClipboardData Create(MaterialSwitchClip src, int materialIndex)
    Parameters
    Type Name Description
    MaterialSwitchClip src

    The MaterialSwitchClip source

    Int32 materialIndex

    The index of the material in the clip. Index less than 0 means global properties

    Returns
    Type Description
    MaterialPropertiesClipboardData

    Material properties data that can be pasted on another MaterialSwitchClip

    PasteInto(MaterialSwitchClip, Int32)

    Paste this MaterialPropertiesClipboardData into a certain material in the target MaterialSwitchClip.

    Declaration
    public bool PasteInto(MaterialSwitchClip target, int targetMaterialIndex)
    Parameters
    Type Name Description
    MaterialSwitchClip target

    The MaterialSwitchClip target

    Int32 targetMaterialIndex

    The index of the material in the target clip. Index less than 0 means global properties.

    Returns
    Type Description
    Boolean

    true if the paste is successful, false otherwise

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023