Skip to content

Texture2DArrayGenerator provides function or editor to make a Texture2DArray.

License

Notifications You must be signed in to change notification settings

XJINE/Unity_Texture2DArrayGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity_Texture2DArrayGenerator

Texture2DArrayGenerator provides function or editor to make a Texture2DArray.

Importing

You can use Package Manager or import it directly.

https://github.com/XJINE/Unity_Texture2DArrayGenerator.git?path=Assets/Packages/Texture2DArrayGenerator

Dependencies

This project use following resources.

How to Use

Use in Runtime

Texture2DArrayGenerator is quite simple. Pass some textures to Generate function. And then, it returns Texture2DArray instance.

public static Texture2DArray Texture2DArrayGenerator.Generate(IList<Texture2D> textures)

Use as Asset

If you need Texture2DArray as pre-compiled asset. It can be made from CustomWindow.

Pass the textures to CustomWindow and press the Generate button. Then, Texture2D asset will be generated in current Assets dir.

If you succeed in generate, a popup will be shown in CustomWindow. If you failed to generate, some error message will be shown in Console.

About

Texture2DArrayGenerator provides function or editor to make a Texture2DArray.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages