docs.unity3d.com
    目次を表示する/隠す

    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

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)