add ToMessage() to VmcExtSettingColor
This commit is contained in:
parent
0ca919ad5e
commit
164132cbb1
|
@ -18,6 +18,7 @@
|
|||
|
||||
using Godot;
|
||||
using godotOscSharp;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace godotVmcSharp
|
||||
{
|
||||
|
@ -59,5 +60,15 @@ namespace godotVmcSharp
|
|||
{
|
||||
color = _color;
|
||||
}
|
||||
|
||||
public godotOscSharp.OscMessage ToMessage()
|
||||
{
|
||||
return new godotOscSharp.OscMessage(addr, new List<godotOscSharp.OscArgument>{
|
||||
new godotOscSharp.OscArgument(color.R, 'f'),
|
||||
new godotOscSharp.OscArgument(color.G, 'f'),
|
||||
new godotOscSharp.OscArgument(color.B, 'f'),
|
||||
new godotOscSharp.OscArgument(color.A, 'f')
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user