728x90
반응형

C# 44

정해진 시간마다 Method 실행시키기 [Unity]

사실 저번에 랜덤위치에서 생성되게 했지만 솔직히 어떠한 조건을 만들어서 그 조건에 맞을 때 생성되게 하는 것은 정말 귀찮은 일이다. ++ 귀찮아서 메서드 만드는 것에 축하하며 그래서 이번에는 주기적으로 반복시키려고 한다. 마침 Unity에 유용한 메서드가 있다. InvokeRepeating이란 메서드다. { public GameObject[] animalPrefab; private float spawnRangeX = 20f; private float spawnposZ = 20; private float startDelay = 2; private float spawnInterval = 1.5f; // Start is called before the first frame update void Start() ..

Update(), FixedUpdate(), LateUpdate()의 차이 [Unity]

2019.4 LTS 기준으로 설명한다. Unity의 기본적인 틀은 거의 바뀌지 않기에 맞다고봐도 무방하다. docs.unity3d.com/ 원하면 위의 영상을 참고해도 좋다. Update() Update는 처음 C# 생성될 때 만들어진 주석의 설명 그대로다. Update is called every frame, if the MonoBehaviour is enabled. 매 프레임마다 호출된다. **MonoBehaviour는 C# 스크립트라면, Unity를 사용한다면 무조건 같이 포함된 Class라고 배웠다. 나중에 더 알아보자 Update is the most commonly used function to implement any kind of game script. -> script를 읽어들이는 주기라..

More Effective C# / 빌 와그너

C#을 유니티하면서 배우는 김에 좀 더 효율적으로 짤 수 있지 않을까해서 한 번 봤다. #책소개 더 나은 코드를 작성하는 새로운 지침 50가지(C# 7.0 대응) C#은 전통적인 .NET 기반 개발에서 유니티 게임 엔진으로 개발 영역을 확대하면서 더욱 주목받고 있다. 또한 자마린으로 다양한 모바일 플랫폼에 대응할 수 있어 수요가 계속 늘고 있다. 이 책은 소프트웨어 개발자가 C#을 더 효율적으로 사용할 수 있는 다양한 팁과 실용적인 방법을 제공한다. 특히 전작인 『이펙티브 C#』에서 미처 다루지 못했던 50개 추가 개발 지침을 선정해 자세히 다룬다. 저자는 자신의 노하우와 함께 개발 커뮤니티에서 제안한 개발 지침까지 고려해 매일 발생할 수 있는 문제를 해결할 강력한 새 솔루션을 제공한다. 전문가의 팁과 ..

리뷰/IT 2020.08.18

[Unity] particle system 익히기 - 1 (Introduction Particle Systems)

https://learn.unity.com/tutorial/introduction-to-particle-systems?language=en&projectId=5f078cfdedbc2a3231d47753 Introduction to Particle Systems - Unity Learn Unity features a robust Particle System where you can simulate moving liquids, smoke, clouds, flames, magic spells, and a whole slew of other effects. In this tutorial, you'll get a high level overview of the Particle System and its featu..

728x90
반응형