Git Product home page Git Product logo

datagenerator's Introduction

데이터제네레이터는 기획자가 구글 스프레드시트에서 작성한 각종 데이터를 클라이언트, 서버가 편리하게 사용할 수 있도록 c# 코드와 xml 로 생성해주는 unity에서 돌아가는 도구이다.

https://console.developers.google.com/ 에 접속

데이터제네레이터 프로젝트를 하나 만들고 google drive api 와 google sheets api 를 추가 해준다.

사용자인증정보 탭에서 OAuth 2.0 클라이언트 ID 를 만들고 json 파일로 받아서

Assets\Resources\Config 폴더에 credentials_service.json 이름으로 저장 한다.

구글 드라이브에서 폴더를 하나 만든다. (개인 드라이브는 소유자가 탈퇴시 파일이 날아가므로 공유 드라이브에 만들기 권장)

datagenertor의 sample 폴더안에 있는 xlsx 파일들을 올린다

올린 파일을 오른쪽 클릭→ 연결앱→ 구글 스프레드 시트로 연다.

파일→저장하기로 저장한다.

모두 완료후 xlsx 파일들은 지운다.

데이터 생성법

소스트리로 datagenerator를 받아서 유니티로 연다

Tools→Datagenerator 를 선택후 뜨는 창에서 DriveFolder 네임에 구글드라이브의 폴더 이름을 적는다.

Generate 를 누르면 생성 시작

설명
DriveFolderName 원본 폴더
DriveFileName Prefix 해당 이름이 들어간 파일만 생성
ClientPath 데이터 생성후 복사될 클라이언트 위치
ServerPath 데이터 생성후 복사될 서버 위치
Force ReGenerate ALL 강제로 데이터를 모두 재생성
Copy Only 클라,서버 데이터 복사만 실행
Copy Folder Name 폴더 복사할 대상 폴더
Folder Copy 원본->대상 폴더로 카피 실행
종류 서버 경로 클라 경로 설명
CSV제목 DataGeneratorForServer\Text Resources\Text 제목.csv 로 추출됨
Enum제목 DataGeneratorForServer\ServerDataManager_CSharp Assets\DataScripts Enum제목.cs 으로 추출 됨
제목 DataGeneratorForServer\ServerDataManager_CSharp
DataGeneratorForServer\xmlDataForServer
Assets\DataScripts
Assets\StreamingAssets\xmlData
제목.cs와 제목.xml 파일로 추출 됨

datagenerator's People

Contributors

treenod-kendrick avatar kopan avatar playbaekkyunghoon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.