Follow

cute trick I found in because the texture scaling always bugged me. if you set the "material.mainTextureScale" to a "Vector2" of the local scale multiplied by a base scale unit you can create an instance of that material scaled correctly and tiled.

gives you errors about material leaks though. still looking at how to fix that without using "sharedMaterial" because I don't want to edit the basic material.

ยท 1 ยท 0 ยท 0

@tastytentacles Errors? Whenever I had to "leak" material intentionally, I certainly didn't receive any errors or warnings about it.
Anyway, did you figure out the best approach since your post?

@maximkamalov not really, it's an error in the sense of being in the red warning box. From what I can tell it doesn't like creating material instances in edit mode but it's fine doing the same thing at run time.

Sign in to participate in the conversation
koyu.space

Sponsored by:

@Fyrfaras

...and a couple bottles of Afri cola



A cozy space for everyone (* ^ ฯ‰ ^) โœจ


This server doesn't have a specific theme or topic and everyone is welcome to join :)




koyu's personal website

Server Status


Shop on koyu.space Shop

Donate using Liberapay

We also accept donations through XLM: GA6GCTVR7MMRG3QGACIXWHHMWX4YWK2JSMSJOPHASLCVDAVXIHTQST52


Proud member of the: Keep The Internet Quirky Association