docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method LineToTexture

    LineToTexture(OccurrenceList, UseColorOption, int, int)

    WARNING: this function is tagged as 'EXPERIMENTAL'
    Generate a textured quadrangle over an existing mesh of coplanar lines

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public void LineToTexture(OccurrenceList lines, UseColorOption useColor, int resolution = 512, int thickness = 5)
    Parameters
    Type Name Description
    OccurrenceList lines

    Lines to select

    UseColorOption useColor

    Set color policy.

    int resolution

    Texture resolution

    int thickness

    The thickness of the lines in pixels

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)