https://github.com/xjine/unity_settexturestomaterial
SetTexturesToMaterial will make Texture2DArray and set it to material in runtime.
https://github.com/xjine/unity_settexturestomaterial
assets unity
Last synced: 2 months ago
JSON representation
SetTexturesToMaterial will make Texture2DArray and set it to material in runtime.
- Host: GitHub
- URL: https://github.com/xjine/unity_settexturestomaterial
- Owner: XJINE
- License: bsd-3-clause
- Created: 2019-01-24T11:52:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-24T12:24:23.000Z (over 7 years ago)
- Last Synced: 2025-04-03T09:12:46.504Z (about 1 year ago)
- Topics: assets, unity
- Language: C#
- Homepage:
- Size: 145 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unity_SetTexturesToMaterial
``SetTexturesToMaterial`` will Make ``Texture2DArray`` and set it to material in runtime.
## Import to Your Project
You can import this asset from UnityPackage.
- [SetTexturesToMaterial.unitypackage](https://github.com/XJINE/Unity_SetTexturesToMaterial/blob/master/SetTexturesToMaterial.unitypackage)
### Dependencies
You have to import following assets to use this asset.
- [Unity_IInitializable](https://github.com/XJINE/Unity_IInitializable)
- [Unity_Texture2DArrayGenerator](https://github.com/XJINE/Unity_Texture2DArrayGenerator)
## How to Use

Set ``material``, ``parameter``(means name) and ``textures``. That's all.
Additionary, ``textures.Length`` value will be set to ``"parameter + Length"``.
Ex. when the ``prameter`` value is ``_Textures``, ``(u)int _TexturesLength`` parameter gets ``textures.Length`` value.