# 시트에 데이터 쓰기(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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
