GetFlipBoardByPlayerId#

ExportFlipBoardSystem.GetFlipBoardByPlayerId(playerId)#

指定したプレイヤーの ExportFlipBoard を取得します。

Parameters:

playerId (string) -- プレイヤーのID

Returns:

フリップボード

Return type:

ExportFlipBoard

Example#

-- 入室したプレイヤーのExportFlipBoardを取得し、そのテクスチャをマテリアル(ExampleMaterial)に設定する
local materialName = "ExampleMaterial"
vci.vc.room.OnPlayerJoined(
    function (joinEvent)
        local playerId = joinEvent["PlayerId"]
        local flipBoard = vci.vc.room.flipBoard.GetFlipBoardByPlayerId(playerId)
        vci.assets.material.SetTexture(materialName, flipBoard.GetTextureId())
end)