Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- Android
- 역직렬화 오류
- 유니티
- AssetBundle
- 듀얼쇼크4
- android app bundle
- RenderStreaming
- Unity VisualStudio
- Specular Highlights
- web3D
- DS4
- 구글플레이스토어
- 반응형레이아웃
- Depth camera
- untiy
- TextMeshPro 한글
- 랜더스트리밍
- Unity
- muilt controller
- Rewired
- Environment Reflections
- apk
- 커스텀쉐이더
- kinect v2
- unityhub
- 에셋번들
- WebGL
- AR
- TextMeshPro
- webview
Archives
- Today
- Total
기억저장고
[Unity] SpriterRender에 그림자 넣는법 본문
SpriteRender에는 Material을 1개밖에못넣고
CastShadow가 체크된 Material을 넣어도 그림자가 안생긴다.
아래 코드를 사용하면
3D공간에 SpriteRender를 배치했을때 그림자가 생긴다.
spriteRenderer = gameObject.GetComponent<SpriteRenderer();
spriteRenderer.recieveShadows = true;
spriteRenderer.shadowCastingMode=UnityEngine.Rendering.ShadowCastingMode.TwoSided;
-출처
https://www.reddit.com/r/Unity3D/comments/aw48dl/sprite_receiving_cast_shadows_bug/
From the Unity3D community on Reddit: Sprite receiving cast shadows bug ?
Explore this post and more from the Unity3D community
www.reddit.com
'Unity' 카테고리의 다른 글
[Unity] SurfaceType(_Surface)/RenderFace(_Cull) 스크립트로 수정하기 (0) | 2025.02.13 |
---|---|
AssetBundle 유니티 에디터 안 켜고 만들기 (0) | 2024.10.04 |
[Unity] 키넥트(Kinect V2) Depth Camera 이미지 세팅하는법 (1) | 2024.03.22 |
Unity VisualStudio 연결 안될 경우(External Tool에서도 안될경우) (0) | 2024.03.08 |
[Untiy] URP – 커스텀쉐이더에서 Environment Reflections, Specular Highlights 조절하는법 (0) | 2024.02.22 |