Set Material Property

關卡物件
客戶端
可在 Mobile 端和 PC 端使用

This API allows you to modify certain properties of an object's material.

聲明

func SetMaterialProperty(target entity<LevelObject>, propertyName string, propertyValue MaterialProperty, out var success bool)
go

參數

輸入

名稱 類型 描述
目標 LevelObject The target object to get the material property for
Property Name String Set the name of the property
Property Value MaterialProperty Set the value of the property

輸出

名稱 類型 描述
Success Bool Set whether it’s successful or not