First, ThirdPersonControl set the inspector for the ThirdPerson ViewTypes. I note that the m_YawLimitLerpSpeed is not displayed and was easily corrected by modifying the Adventure specific section, thus:
Where I am struggling is to add my own custom ThirdPerson inherited ViewType to this inspector. "target is MyNewViewType" is not recognised in VisualStudio. I appreciate this is a Unity question rather than UCC, but any pointer would help, thanks.
Code:
if (target is Adventure) {
FieldInspectorView.AddField(unityObject, target, "m_YawLimit", container, onChangeEvent, onValidateChange);
FieldInspectorView.AddField(unityObject, target, "m_YawLimitLerpSpeed", container, onChangeEvent, onValidateChange);
}
Where I am struggling is to add my own custom ThirdPerson inherited ViewType to this inspector. "target is MyNewViewType" is not recognised in VisualStudio. I appreciate this is a Unity question rather than UCC, but any pointer would help, thanks.