在區域染色

染色
伺服器端
可在 Mobile 端和 PC 端使用

區域染色

聲明

func DyeAtArea(normal Vector3, position Vector3, range float, color int, fixedRange float, randomRatio float, randomDecay float, out var count int)
go

參數

輸入

名稱 類型 描述
法向 Vector3 設定物件法線
位置 Vector3 設定染色點
範圍 Float 設定染色範圍
叠加色 Int 顏色
固定區域 Float 固定染色區域
隨機係數 Float 隨機係數
隨機衰減係數 Float 隨機衰減係數

輸出

名稱 類型 描述
數量 Int 染色數量