Unity 3D Trail Effect Script - MoveToTrailUV

  Рет қаралды 37,807

이상원

이상원

3 жыл бұрын

GitHub : github.com/lswsox/MoveToTrailUV
알립니다. 영상에서는 UV Tiling 값의 조정에 대해서 양방향 편집이 가능했지만, Prefab Revert 등의 예외상황 처리에 대한 에디터 스크립트 복잡도가 증가하여 일방향 편집으로 변경했습니다. 이제 재질에서 UV Tiling을 조정해야합니다.
Notify. In the video, two-way editing was possible for the adjustment of UV Tiling values, but the complexity of handling exceptions such as Prefab Revert increased, so it was changed to one-way editing. Now we need to adjust the UV Tiling on the material.

Пікірлер: 57
@perfectcode6413
@perfectcode6413 Жыл бұрын
와.. 딱 제가 찾던 영상이네요ㅠㅠ 감사합니다
@bitatam2631
@bitatam2631 Жыл бұрын
감사합니다. 좋은 영상 덕에 또 하나 배워갑니다.
@Rookx51
@Rookx51 2 жыл бұрын
What an amazing trail renderer script! I don't speak the slightest korean but the files and video are pretty easy to follow. Thanks!
@diegorybak7921
@diegorybak7921 10 ай бұрын
Gracias por compartir el archivo, es una buena forma de practicar y aprender con el proyecto funcionando.Exitos!
@coclv2591
@coclv2591 2 жыл бұрын
It looks awesome!!!
@hdj36f7f8
@hdj36f7f8 3 жыл бұрын
한수배우겠습니다.
@chkoro5211
@chkoro5211 2 жыл бұрын
thx for sharing such awesome trail!!!
@pequeno3d
@pequeno3d 2 жыл бұрын
Great job!
@pati..
@pati.. 2 жыл бұрын
무료강의를 이렇게 볼 수 있다니.. 감사합니다
@hichamtsouri4703
@hichamtsouri4703 2 жыл бұрын
I'm blown away
@diegorybak7921
@diegorybak7921 10 ай бұрын
Muy bueno amigo!
@brandonjacksoon
@brandonjacksoon 2 жыл бұрын
Thanks dude!
@hullm1641
@hullm1641 12 күн бұрын
thank you!
@fortedexe8273
@fortedexe8273 2 жыл бұрын
Thanks for sharing
@nima_asadi
@nima_asadi 2 жыл бұрын
Useful, Tnx
@fizzypeaches5611
@fizzypeaches5611 Жыл бұрын
Does this technique work with Built-in shaders?
@Mikelica69
@Mikelica69 2 жыл бұрын
Ur a god.
@TheStruckLemon
@TheStruckLemon 2 жыл бұрын
Hi again. This works like a charm! Do you think it could be achievable with trails applied to particles in the particle system?
@gamedevone
@gamedevone 2 жыл бұрын
Whether or not this is possible will be known through research. Particles in the Particle System move at different speeds. In order to transmit different distances to each trail of particles, it seems that the material for each trail is different or if the material is the same, distance information should be transmitted as Custom Data. It's an interesting topic, but I'm so busy these days that I don't have time to research it. The chances of success seem low.
@TheStruckLemon
@TheStruckLemon 2 жыл бұрын
@@gamedevone No problem. I was curious about your answer. Thanks!
@ponix1004
@ponix1004 6 ай бұрын
캐릭터 움직일때 발자국남기기도 좋겠네요 ㄷㄷ...
@user-jx5kk6ro3b
@user-jx5kk6ro3b 2 жыл бұрын
좋은 영상 잘 봤습니다. 이거 상업용으로 써도 괜찮을까요?
@gamedevone
@gamedevone 2 жыл бұрын
네 자유롭게 사용하셔도 됩니다.
@user-jx5kk6ro3b
@user-jx5kk6ro3b 2 жыл бұрын
@@gamedevone 감사합니다^^
@TheStruckLemon
@TheStruckLemon 2 жыл бұрын
The UV Tiling property keep reseting, even if it's not in a prefab. How to prevent this ?
@gamedevone
@gamedevone 2 жыл бұрын
Can you tell me more about when it resets?
@TheStruckLemon
@TheStruckLemon 2 жыл бұрын
@@gamedevone When I want to edit the Tiling and offeset propery in the material, at first it work. If I enter 0.2 as a value it work too. But if I just click anywhere else and come back to the material or the trail, the value turn back to default which is one. Worse case : In prefab it won't even allow me to edit it.
@gamedevone
@gamedevone 2 жыл бұрын
@@TheStruckLemon I did what you described in the project on GitHub, but the problem doesn't reproduce. There seems to be something causing the problem. Could you please share your problem in a Unity package?
@TheStruckLemon
@TheStruckLemon 2 жыл бұрын
With further research, I found it is a common bug in Unity and seems it has nothing to do with your shader. Resetting the material simply resolved to issue. Thank you for your quick reply tho.
@gamedevone
@gamedevone 2 жыл бұрын
@@TheStruckLemon I'm glad you found the cause of the problem.:)
@HTpng
@HTpng Жыл бұрын
혹시 이스크립트가 이펙트 시작 시간이랑 종료시간을 따로 설정해줄수 있는 방법이 있을까요??
@gamedevone
@gamedevone Жыл бұрын
시작과 종료를 해보진 않았으나, 셰이더와 재질에 오퍼시티 제어 기능을 넣는 방법도 있고, 트레일 컴포넌트에서 트레일 길이를 조정하는 방법도 있을 것 같습니다.
@HTpng
@HTpng Жыл бұрын
@@gamedevone 답변 감사합니다 업무를 하다보면 생각보다 트레일때문에 업무적 이슈가 많이 생기더라구요 말씀하신 방법으로 한번 연구해보겠습니다 감사합니다.
@user-vz5pd4fr5i
@user-vz5pd4fr5i 2 жыл бұрын
트레일을 이용하지않고 라인렌더러로 트레일 효과를 내려면 어떻게 해야하나요
@gamedevone
@gamedevone 2 жыл бұрын
라인렌더러는 정해진 위치에 선을 그리는 기능입니다. 라인렌더러로 트레일 효과를 내려면 지나간 경로를 일일이 지정해줘야하는데, 그러면 결국 트레인 렌더러가 됩니다. 그냥 트레일 렌더러 쓰는 것을 권합니다.
@m.z6610
@m.z6610 9 ай бұрын
Incredible! Does it work in urp?
@gamedevone
@gamedevone 9 ай бұрын
I remember creating this for Urp.
@GameDevAraz
@GameDevAraz 2 ай бұрын
omaio shindaio
@alextreme98
@alextreme98 9 ай бұрын
Thank you for this amazing effect. You just won a sub and a like
@user-bi9yd1gh1d
@user-bi9yd1gh1d 10 ай бұрын
안녕하세요 영상 정말 유용했습니다!! 혹시 urp 파일이 아닌 그냥 unity 파일에서는 나오지 않던데 혹시 해결방법있을까요?
@gamedevone
@gamedevone 10 ай бұрын
래거시 렌더파이프라인이신가보네요. urp용 셰이더나 애셋을 래거시용으로 포팅하는건 불가능한건 아니지만 손이 좀 많이 갑니다.
@user-bi9yd1gh1d
@user-bi9yd1gh1d 10 ай бұрын
@@gamedevone 헉 늦은 시간에 답변 감사합니다ㅜ shader 관련되어서 요즘 공부중인데 관련서적이나 따로 공부법이 있을까요?
@gamedevone
@gamedevone 10 ай бұрын
요즘은 유튜브 검색하면 이것 저것 자료가 많이 나올거에요. 유니티 코리아 채널에도 좋은 자료들 많더군요.
@Andmos98
@Andmos98 2 жыл бұрын
Hello! they are amazing. do you know if i could add collisions to these ?
@gamedevone
@gamedevone 2 жыл бұрын
It seems possible to do physics calculations by applying a Rigidbody to the head of the effect. If you want the tail to do physics calculations, you'll probably need to do a Fluid simulation instead of using a Trail.
@Andmos98
@Andmos98 2 жыл бұрын
@@gamedevone thank you very much for your response. what i am trying to achieve is to get colissions (actually i need the trigger part only) on the whole length of the trail. i have been trying for days but i haven't found any solution and i didn't find anything on google either....
@filippoperlini8951
@filippoperlini8951 2 жыл бұрын
@@Andmos98 Probably looping throght every position of the TrailRenderer and checking if the distance between an X point and the i position of the trail is less than an R Radius is the best solution since TrailRenderer do not support collisions. If your trail is really long and with a low VertexDistance value in order to optimize you could reduce the loop by half and skipping 1 point everytime you loop a TrailPosition and approximate the skipped pos by calculating distance between the current i and i + 1 points. Also do not loop every frame to check collision, try to stick as much as possible as the FixedTimestep from Unity (or higher but never less than FixedTimestep for custom complex collisions like these). Another solution could be to have a shader for the trail that has a DepthOnly pass and making some kind of depthbuffer collision but it could not be perfect as the one above and also in some cases even worse (Idk i should test it). The best and optmized solution (also the complex) for you would probably be to create your own trail renderer from scratch with a set of objects that you want to collide with and then while you update the behaviour of the trail you also check new distances from these objects and call some appropiate events on trigger/on collision. In this case you wouldn't have to loop every frame the positions of the trails since you are already managing them internally.
@Andmos98
@Andmos98 2 жыл бұрын
@@filippoperlini8951 i was thinking to "drop" invisible objects that are connected and add triggers to them or something. i have no idea how to implement this as i only have a few weeks experience with unity
@qqwwqq8778
@qqwwqq8778 7 ай бұрын
Is this viable for a mobile game?what do you think?
@gamedevone
@gamedevone 7 ай бұрын
The MoveToTrailUV function is simple enough to be used on mobile platforms, but the Trail is a heavy computation, so using it on mobile should be done with caution.
@qqwwqq8778
@qqwwqq8778 7 ай бұрын
@@gamedevone oh ok.thanks for the quick reply!
@elapatrongames
@elapatrongames 2 жыл бұрын
how to import this
@gamedevone
@gamedevone 2 жыл бұрын
1. Download the project from the GitHub link in the video description. 2. Open the downloaded project in the Unity 3D editor. 3. Export the effect as a Unity package. 4. Import the unity package in your project.
@elapatrongames
@elapatrongames 2 жыл бұрын
@@gamedevone thanks
@GCEntertainment1603
@GCEntertainment1603 2 жыл бұрын
@@gamedevone can i use this asset for HDRP?
@gamedevone
@gamedevone 2 жыл бұрын
@@GCEntertainment1603 I haven't tested it in HDRP, so I don't know if it's possible in HDRP.
@GCEntertainment1603
@GCEntertainment1603 2 жыл бұрын
@@gamedevone thanks you
Unity Shader Graph - Stylized Trails Tutorial
17:32
Gabriel Aguiar Prod.
Рет қаралды 211 М.
Stay on your way 🛤️✨
00:34
A4
Рет қаралды 23 МЛН
What it feels like cleaning up after a toddler.
00:40
Daniel LaBelle
Рет қаралды 84 МЛН
БАБУШКИН КОМПОТ В СОЛО
00:23
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 17 МЛН
Dissolve effect in Shader Graph
19:23
PabloMakes
Рет қаралды 30 М.
Level 1 to 100 Impossible Puzzles
17:25
Hafu Go
Рет қаралды 3,7 МЛН
How to make a FIRE SWORD on Unity Shader Graph from scratch!
46:37
Piloto 3D Art
Рет қаралды 10 М.
Realistic Glass Material in Unity HDRP
6:49
UGuruz
Рет қаралды 57 М.
A new way to generate worlds (stitched WFC)
10:51
Watt Designs
Рет қаралды 520 М.
How To Create Water Effects in Unity - Water Bending Tutorial
16:36
A Bit Of Game Dev
Рет қаралды 102 М.
[Unity] Creating an Attack Combo! Could it be easier...?
8:06
더블엘 DoubleL
Рет қаралды 2,2 М.
Сделала Сюрприз Брату После 3 лет Разлуки ❤️
0:26
Глеб Рандалайнен
Рет қаралды 1,9 МЛН
Best Summer Collection For Girls 🤪 Amazing dress #shorts #youtubeshorts
0:15
архив.. Северные Дачи Угледара 23..
0:15
Виталик
Рет қаралды 14 МЛН
Bro didn’t make it 😬😟💀 (FAKE NOT REAL) #shorts
0:19
Nate Nahhh
Рет қаралды 11 МЛН
A woman comes a plan to teach her indifferent husband a lesson #shorts
0:44
Fabiosa Best Lifehacks
Рет қаралды 3,5 МЛН