Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

How to create a Texture2D

Discussion in '2D' started by AndreasLovesFiveFingerEntertainment, May 9, 2020.

  1. AndreasLovesFiveFingerEntertainment

    AndreasLovesFiveFingerEntertainment

    Joined:
    Apr 16, 2017
    Posts:
    14
    Hi,

    I'm new to the whole 2D lights in Unity so I'm trying to learn all about them. I'm using Unity's own documents: https://docs.unity3d.com/Packages/c...lightweight@6.7/manual/SecondaryTextures.html

    But under the section "Setting up a normal map and mask Textures" it talks about using a Texture2D as a mask image. But how do you make a Texture2D? I seem to not be able to find anything about it.

    What am I missing?

    Thanks in advance,
    Andreas
     
  2. Vryken

    Vryken

    Joined:
    Jan 23, 2018
    Posts:
    2,106
    A "Texture2D" is just an image.
     
  3. AndreasLovesFiveFingerEntertainment

    AndreasLovesFiveFingerEntertainment

    Joined:
    Apr 16, 2017
    Posts:
    14
    Thanks! That explains my confusion then.