TCP (6) 썸네일형 리스트형 Starting TCP by Unity (3) - Practice In this time, we will send and receive data between Server and Client. Now let's try with clicking a button info to send and receive. Right click on Hierarchy to create a Button. And then right click again in Assets/Scripts to create a script named as ButtonControl. Then put the script into an empty object named ButtonControl. And put a simple code as above. Follow the steps I wrote to put the f.. Starting TCP by Unity (2) - Client https://soja-dev.tistory.com/4 유니티 TCP 시작하기(1) - Server 먼저 C#을 활용하여 Server를 만든 후 유니티를 활용하여 Client로써 Server에 접속할 것이다. 그럼 먼저 Server를 만들어 보자. https://github.com/SoftwareDevJake/TCPServer GitHub - SoftwareDevJake/TCPServ.. soja-dev.tistory.com If you completed making a server by above, then now let's make a client to connect to it https://github.com/SoftwareDevJake/TCPClient GitHub - SoftwareDevJake.. Starting TCP by Unity (1) - Server I'm going to make a server with C# first then make Client with Unity to connect to the Server. So let's make Server part first. https://github.com/SoftwareDevJake/TCPServer GitHub - SoftwareDevJake/TCPServer Contribute to SoftwareDevJake/TCPServer development by creating an account on GitHub. github.com Get files from about by using "git clone" After you get all of them, just simply open Console.. 유니티 TCP 시작하기(3) - 응용 이번엔 앞서 만든 서버와 클라이언트를 활용하여 추가로 보내고 싶은 데이터를 선정하여 주고 받을 겁니다. 먼저 클라이언트인 유니티에서 버튼을 만들어 버튼이 눌렸다는 정보를 주고 받아 봅시다! Hierarchy에서 우클릭으로 UI -> button을 생성합니다. 그리고 또 다른 Create Empty로 ButtonControl이라는 이름으로 오브젝트를 만든 후 Project의 Assets/Scripts 안의 폴더에 마우스 우클릭을 통해 Create -> C# Script를 생성해줍니다. 그 후 저번과 같이 스크립트를 드래그하여 ButtonControl 오브젝트에 넣어줍니다. 위와 같이 생성한 스크립트에 간단한 함수를 만들어 줍니다. 위 사진의 순서에 따라 버튼에 OnClick 함수 구간에 ButtonCont.. 유니티 TCP 시작하기(2) - Client https://soja-dev.tistory.com/4 유니티 TCP 시작하기(1) - Server 먼저 C#을 활용하여 Server를 만든 후 유니티를 활용하여 Client로써 Server에 접속할 것이다. 그럼 먼저 Server를 만들어 보자. https://github.com/SoftwareDevJake/TCPServer GitHub - SoftwareDevJake/TCPServ.. soja-dev.tistory.com 위를 통해 서버를 만들었다면 이번엔 유니티를 클라이언트로 만들어 위의 서버에 접속을 시킬겁니다. https://github.com/SoftwareDevJake/TCPClient GitHub - SoftwareDevJake/TCPClient Contribute to SoftwareDe.. 유니티 TCP 시작하기(1) - Server 먼저 C#을 활용하여 Server를 만든 후 유니티를 활용하여 Client로써 Server에 접속할 것이다. 그럼 먼저 Server를 만들어 보자. https://github.com/SoftwareDevJake/TCPServer GitHub - SoftwareDevJake/TCPServer Contribute to SoftwareDevJake/TCPServer development by creating an account on GitHub. github.com 위에서 git clone을 이용하여 파일들을 받아오자. 파일을 받은 후 visual studio를 통해 ConsoleApp1.sin 파일을 실행시키면 준비 끝. 위와 같이 최대 플레이어 수와 포트넘버를 지정. 그리고 실행 시키면 다음과 같은 서버 .. 이전 1 다음