일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- webview
- Rewired
- web3D
- 유니티
- muilt controller
- AR
- untiy
- 듀얼쇼크4
- apk
- Depth camera
- AssetBundle
- 구글플레이스토어
- RenderStreaming
- WebGL
- Android
- Environment Reflections
- 커스텀쉐이더
- TextMeshPro
- unityhub
- 랜더스트리밍
- Unity VisualStudio
- 반응형레이아웃
- android app bundle
- 역직렬화 오류
- Specular Highlights
- kinect v2
- DS4
- Unity
- TextMeshPro 한글
- 에셋번들
- Today
- Total
목록Unity (42)
기억저장고
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ObjectRotation : MonoBehaviour { public float rotationSpeed = 15;//회전속도 public float smoothness = 5;//관성 값 private Quaternion targetRotation = Quaternion.identity; void Update() { //회전 if (Input.GetMouseButton(0)) { Quaternion rot = transform.rotation; rot *= Quaternion.Euler(new Vector3(Input.GetAxis("Mo..
private void SettingTextWidth(RectTransform rectTrf,TextMeshProUGUI tmpText, string textValue) { tmpText.text = textValue; Vector2 rectSize = rectTrf.sizeDelta; rectSize.x = tmpText.preferredWidth; rectTrf.sizeDelta = rectSize; } preferredWidth 를 사용하면 길이를 알 수 있다!.. 출처 https://polarbearworld.tistory.com/167 Unity & C# ~ TMPRO에서 텍스트 길이 아는 법 TMPRO에서는 UI의 길이뿐 아니라, 현재 사용한 텍스트의 길이를 확인할 수 있는 명령어가 있다. u..
카메라 360 회전 시, X,Y값을 한번에 Rotate()함수 에 넣어야 똑바로 회전함 > 똑바로회전: 좌우 드래그시, 좌우로 회전되고/ 위아래 드래그시 위아래로 회전됨 public float rotationSpeed = 1; private float x = 0; private float y = 0; void Update() { if (Input.GetMouseButton(0)) { transform.Rotate(new Vector3(Input.GetAxis("Mouse Y") * rotationSpeed, -Input.GetAxis("Mouse X") * rotationSpeed, 0)); x = transform.rotation.eulerAngles.x; y = transform.rotation.eu..
1. 폰트 다운받기 2. 폰트오른쪽클릭>Create>TextMeshPro>Font Asset 클릭 끝.. ** 사용하는 글자가 깨지면 TMP_Font Asset 클릭 > Altas Width,Altas Height 값 더 크게 수정 (1024>2048...)
-쉐이더 코드에 이것 추가하면 된다. [ ToggleUI ] _CastShadows ( "Cast Shadows" , Float ) = 1.0 하지만,, Lux/Glass는 안먹힌다 그래서 Lux/Glass를 사용할때는 머터리얼을 2개 넣어줘야한다. [Lux/Glass에 그림자 추가하는방법] MeshRender의 Material에 아래와 같이 추가하면 그림자도 생기고 투명굴절도 생긴다. -Lux/Glass -Universal Renderpipline/Lit [출처] https://forum.unity.com/threads/shadows-not-casting-with-lwrp-lit-shader-transparent-surface.759827/#post-8181353 Shadows not casting w..
*상황 유니티 실행파일을 받아서 실행을 시켰는데 해상도가 설정한 것과 다르게 나왔다 다른 PC로 실행 했을때는 의도한 해상도가 나왔다 (두 PC모두 같은 디스플레이 사이즈) *Screen 크기에 대한 정보는 레지스트리에 저장된다 [레지스트리편집기] 검색 후 - HKCU\Software\[회사명]\[제품명] 여기에 들어가서 Screenmanager Resolution Height Screenmanager Resolution Width를 수정하면 된다 오른쪽 버튼 클릭 - [수정] 클릭 후 [단위]를 10진수로 바꾼 후, [값 데이터]에 원하는 너비,높이 값을 넣으면된다 - 나는 Screen.SetResolution 에서 설정한 값이 레지스터에 들어가는지 이번에 첨 알게됫다 끝~ 출처 https://foru..
*방법설명 UberPost.shader의 return half4(color, 1); --> return half4(color, SAMPLE_TEXTURE2D_X(_SourceTex, sampler_LinearClamp, uv).a); 이렇게 바꿔야한다. *순서 1.프로젝트의 Library/PackageCache 폴더에서 [com.unity.render-pipelines.universal@12.1.4]폴더 복사 2. 프로젝트의 Packages 폴더에 [com.unity.render-pipelines.universal@12.1.4]붙여넣기 *붙여 넣은 후, Library/PackageCache 폴더에서 [com.unity.render-pipelines.universal@12.1.4]폴더 삭제 (중복방지, L..
Decal은 원래 Transparent 재질에는 비춰지지 않는다. 테스트한 unity 버전 : 2021.2.9 - URP 준비물: 1. Lux URP Essentials($25) or DepthOnly되는 메터리얼 https://assetstore.unity.com/packages/vfx/shaders/lux-urp-essentials-150355 Lux URP Essentials | 시각 효과 셰이더 | Unity Asset Store Add depth to your next project with Lux URP Essentials from forst. Find this & more 시각 효과 셰이더 on the Unity Asset Store. assetstore.unity.com Lux URP Es..