> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# setrenderproperty

> value を object[property] に代入します。Drawing object では direct property assignment と同じ Drawing property assignment を使用します。unknown Drawing properties は無視され、destroyed Drawing objects は変更されません。3 番目の引数は存在する必要があります。 the Drawing API は the required rendering environment is active が true の場合だけこの API を登録します。このチェックが false の場合、initializer はこれらの globals を作成する前に戻ります。

<div className="real-function-page">
  ```lua theme={null}
  setrenderproperty(object: any, property: any, value: any)
  ```

  ## 引数

  <ParamField path={"object"} type={"any"} required>
    インデックスされ、代入される値。Drawing object では RealDrawingObject \_\_newindex handler が使用されます。
  </ParamField>

  <ParamField path={"property"} type={"any"} required>
    代入に使用される property key。Drawing object properties は strings ベースです。
  </ParamField>

  <ParamField path={"value"} type={"any"} required>
    object\[property] に代入される値。この引数は渡す必要があります。nil も渡された値です。
  </ParamField>

  ## 例

  汎用プロパティ ヘルパーを使用して図面プロパティを更新します。

  ```lua theme={null}
  local line = Drawing.new("Line")
  setrenderproperty(line, "Thickness", 3)
  setrenderproperty(line, "Visible", true)

  print(line.Thickness)
  print(line.Visible)
  ```
</div>
