Skip to main content
Member of ML.SDK.MLPlayer
Method

bool MLPlayer.SetProperty(string key, Object value)

 bool MLPlayer.SetProperty(string key, Object value);

Parameters

ParameterTypeDescription
keystringThe name of the property. Use this key to retrieve the property. Must be unique.
valueObjectThe Value to set. Must be serializable for proper synchronization.

Returns

bool

True if setting the property was successful.

Summary

Sets a custom property to the player. Custom properties are synchronized between the clients. Make sure the property type is serializable.