> For the complete documentation index, see [llms.txt](https://shlifedev.gitbook.io/unitygooglesheets/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shlifedev.gitbook.io/unitygooglesheets/how-to-use/live-write.md).

# 시트에 데이터 쓰기(LiveWrite)

&#x20;게임 보안상 문제가 될 수 있으므로 아래의 과정을 거쳐야 이 기능을 사용하실 수 있게 만들었습니다.

&#x20;권한을 허용하기위해 Apps Script로 이동한 후 **File->Project Properties->Script Properties**에 **write** 속성을 추가해주세요. &#x20;

* write 속성을 추가하고 값은 true로 설정해주세요
* password 속성을 추가하고 비밀번호를 지정해주세요

![](/files/-Mez4lODZ8V4uxOEVFS4)

이후 아래와 같이 코드를 작성하여 테스트합니다.

```csharp
    void Start()
    {
        var newData = new TestSheet.Data();
        newData.index = 200;
        newData.intValue = 300;
        newData.strValue = "test";

        UnityGoogleSheet.Write<TestSheet.Data>(newData);
    }

```

![시트에 코드 내용대로 적용 된 사진 ](/files/-Mez5qt2uhC2pEr6eNeR)

&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://shlifedev.gitbook.io/unitygooglesheets/how-to-use/live-write.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
