r/Unity3D – Telegram
r/Unity3D
264 subscribers
12.7K photos
15.6K videos
14 files
48.1K links
News about the Unity engine and project showcases from Reddit. Made possible with @reddit2telegram (@r_channels).
Download Telegram
This media is not supported in your browser
VIEW IN TELEGRAM
First shader experiment, drawing inspiration from digital art. Here’s the result

https://redd.it/1gi3ol7
@r_Unity3D
This media is not supported in your browser
VIEW IN TELEGRAM
2D Physics is endlessly fun - You can do things like put frogs on EVA tethers

https://redd.it/1gi96k8
@r_Unity3D
This media is not supported in your browser
VIEW IN TELEGRAM
Is it better with projectiles or not? I am developing a Tower Defense game about Guardian Demon, who purifies the lost souls (by absorbing them) before they get lost in the deep rift.

https://redd.it/1giflco
@r_Unity3D
Media is too big
VIEW IN TELEGRAM
A little Town/Graveyard scene I put together with TVE/KitBash

https://redd.it/1gidseo
@r_Unity3D
How to control draw calls frame by frame in Unity ?
https://redd.it/1gij70n
@r_Unity3D
Did unity kick the bucket again?
https://redd.it/1gikkr1
@r_Unity3D
'SerializeField' is a type, which is not valid in the given context

Hello, It's my first time coding and I was watching a tutorial video but there was an error in my code and I can't seem to fix it. (I'm using Unity6000.0.24f1 if that helps)

https://preview.redd.it/kjwecnlmboyd1.png?width=334&format=png&auto=webp&s=459a23303a39a81dbc218825ec52310badb52da5

https://preview.redd.it/1w3q0baoboyd1.png?width=918&format=png&auto=webp&s=a4673cb0ab04bdfc3ce5cb2a9a32b4b43e633e1f



https://redd.it/1gikz1m
@r_Unity3D
Question about unity

So im making a game with my friend, i couldn't get our stuff to sync so we are doing that i do a part of the game, then put it on a usb stick and give it to him.

But if my game has assets bought from the store will he have any problems with it? (they are free assets btw)

Or does he have to buy the assests before starting the project or something?


https://redd.it/1giki4s
@r_Unity3D
Having issue snapping a gameobject to a point

Hi there,

Would somebody be able to tell me why this doesn't work?

    public void OnTriggerEnter2D(Collider2D col)
    {
        if (col.tag == "Grid")
        {
            Debug.Log("Creature has been snapped");
            transform.position = col.gameObject.transform.localPosition;
        }
    }

I'm trying to move the gameObject this noscript is attached to to the transform.position of the gameobject the collider 'col' is attached to.

The intended behaviour is that you drag the gameobject inside a trigger with your mouse and then it snaps to the center of the gameobject the trigger is attached to.

The Debug.Log triggers here but the "transform.position = col.gameObject.transform.localPosition;" line is doing nothing.


Any help would be appreciated. Thank you.

https://redd.it/1gio47z
@r_Unity3D
[Unity 2022.3.22f1] How to overlay a static texture on a sprite that uses a spritesheet with ShaderGraph?

Hey there, I’m trying to accomplish something I thought pretty basic: I want to overlay a static wire texture on a sprite that uses a spritesheet. The end result should look like this:

[Expected result](https://preview.redd.it/9xnpjl60opyd1.png?width=185&format=png&auto=webp&s=fcc72e81cae2e0230628d152c3fbb7458b7d47e3)

I’m simply using a Tiling and Offset node to tile a simple cross texture (7x7 pixels), then use a Lerp to add it to the base sprite.
Note that the sprite is part of a big spritesheet.



The issue is that I cannot find the right way to provide UV to the Tiling and Offset node, every possibility has issues:

* Using “Position - Object” works well when the sprite is static, but when it moves the checker pattern slides across the sprite

[Grid sliding when sprite moves](https://i.redd.it/e4perrz2opyd1.gif)

* Using Screen space or World space position does not achieve what I want, as the checker pattern should stay static on the sprite even when it moves
* Using the UV0 - UV3 does not work as the sprite is part of a spritesheet, so when the animation plays the UV change and therefore the checker pattern moves

[Grid moving when animation plays](https://i.redd.it/l82n2g76opyd1.gif)

Any suggestion of having this checker pattern always be static on top of the sprite?

https://redd.it/1giqfgy
@r_Unity3D
Media is too big
VIEW IN TELEGRAM
Tower Factory, the tower defense/factory sim I've been solo developing for the last 16 months will release next week!

https://redd.it/1ginb08
@r_Unity3D