07-12-2021, 11:18 AM
Hi
I did this:
Why I receive these warnings?
I used "Metadata.Count" and every CP has only one metada.
I did this:
Code:
for (int i = 0; i < Spline.ControlPointCount; i++) {
Spline.ControlPointsList[i].RegisterMetaData(gameObject.AddComponent<MetaDataInfo>());
MetaDataInfo metaInfo = Spline.ControlPointsList[i].GetMetadata<MetaDataInfo>();
}
Why I receive these warnings?
Code:
[Curvy] Game object 'Airplane (FluffyUnderware.Curvy.CurvySplineSegment)' has multiple Components of type 'MetaDataInfo'. Control Points should have no more than one Component instance for each MetaData type.
I used "Metadata.Count" and every CP has only one metada.