Navigation
API > API/Plugins > API/Plugins/MetasoundGraphCore > API/Plugins/MetasoundGraphCore/Metasound__ValueCast
References
| Module | MetasoundGraphCore |
| Header | /Engine/Plugins/Runtime/Metasound/Source/MetasoundGraphCore/Public/MetasoundDataReference.h |
| Include | #include "MetasoundDataReference.h" |
namespace Metasound
{
template<typename T>
TDataValueReference< T > Metasound&58;&58;ValueCast
&40;
const TDataReadReference< T > & InRef
&41;
}
Remarks
Cast a TDataReadReference to a TDataValueReference.
In general TDataReadReferences should not be converted into TDataValueReferences unless the caller can be certain that no other TDataWriteReference exists for the underlying parameter. Having a TDataWriteReferences to an existing TDataValueReference can cause confusing behavior as values references are not expected to change value.