MCPcopy Create free account
hub / github.com/crazytuzi/UnrealCSharp / IsSupported

Method IsSupported

Source/ScriptCodeGenerator/Private/FGeneratorCore.cpp:723–841  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

721}
722
723bool FGeneratorCore::IsSupported(FProperty* Property)
724{
725 if (Property == nullptr) return false;
726
727 if (bIsGenerateAllModules && Property->IsNative()) return true;
728
729 if (const auto ByteProperty = CastField<FByteProperty>(Property))
730 {
731 return ByteProperty->Enum != nullptr ? IsSupported(ByteProperty->Enum) : true;
732 }
733
734 if (CastField<FUInt16Property>(Property)) return true;
735
736 if (CastField<FUInt32Property>(Property)) return true;
737
738 if (CastField<FUInt64Property>(Property)) return true;
739
740 if (CastField<FInt8Property>(Property)) return true;
741
742 if (CastField<FInt16Property>(Property)) return true;
743
744 if (CastField<FIntProperty>(Property)) return true;
745
746 if (CastField<FInt64Property>(Property)) return true;
747
748 if (CastField<FBoolProperty>(Property)) return true;
749
750 if (CastField<FFloatProperty>(Property)) return true;
751
752 if (const auto ClassProperty = CastField<FClassProperty>(Property))
753 {
754 return IsSupported(ClassProperty->MetaClass);
755 }
756
757 if (const auto ObjectProperty = CastField<FObjectProperty>(Property))
758 {
759 return IsSupported(ObjectProperty->PropertyClass);
760 }
761
762 if (CastField<FNameProperty>(Property)) return true;
763
764 if (const auto DelegateProperty = CastField<FDelegateProperty>(Property))
765 {
766 return IsSupported(DelegateProperty->SignatureFunction);
767 }
768
769 if (const auto InterfaceProperty = CastField<FInterfaceProperty>(Property))
770 {
771 return IsSupported(InterfaceProperty->InterfaceClass);
772 }
773
774 if (const auto StructProperty = CastField<FStructProperty>(Property))
775 {
776 return IsSupported(StructProperty->Struct);
777 }
778
779 if (const auto ArrayProperty = CastField<FArrayProperty>(Property))
780 {

Callers

nothing calls this directly

Calls 3

GetNameMethod · 0.45
FindMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected